Net::SAJAX::Exception::JavaScriptEvaluation - Exception object for exceptions


Net-SAJAX documentation Contained in the Net-SAJAX distribution.

Index


Code Index:

NAME

Top

Net::SAJAX::Exception::JavaScriptEvaluation - Exception object for exceptions that occur when evaluating JavaScript.

VERSION

Top

This documentation refers to Net::SAJAX::Exception::JavaScriptEvaluation version 0.106

SYNOPSIS

Top

  use Net::SAJAX::Exception::JavaScriptEvaluation;

  Net::SAJAX::Exception::JavaScriptEvaluation->throw(
    message           => 'This is some error message',
    javascript_error  => $je_error_object,
    javascript_string => $javascript,
  );

DESCRIPTION

Top

This is an exception class for exceptions that occur during evaluation of JavaScript in the Net::SAJAX library.

INHERITANCE

Top

This class inherits from the base class of Net::SAJAX::Exception and all attributes and methods in that class are also in this class.

ATTRIBUTES

Top

javascript_error

Required. This is a JE::Object::Error object that contains the error that was generated by JE while evaluating a string of JavaScript.

javascript_string

Required. This is a string that contains the JavaScript that was being evaluated when the error occurred.

METHODS

Top

This class does not contain any methods.

DEPENDENCIES

Top

* Moose 0.77
* MooseX::StrictConstructor 0.08
* Net::SAJAX::Exception
* namespace::clean 0.04

AUTHOR

Top

Douglas Christopher Wilson, <doug at somethingdoug.com>

BUGS AND LIMITATIONS

Top

Please report any bugs or feature requests to bug-net-sajax at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Net-SAJAX. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

I highly encourage the submission of bugs and enhancements to my modules.

LICENSE AND COPYRIGHT

Top


Net-SAJAX documentation Contained in the Net-SAJAX distribution.

package Net::SAJAX::Exception::JavaScriptEvaluation;

use 5.008003;
use strict;
use warnings 'all';

###############################################################################
# METADATA
our $AUTHORITY = 'cpan:DOUGDUDE';
our $VERSION   = '0.106';

###############################################################################
# MOOSE
use Moose 0.77;
use MooseX::StrictConstructor 0.08;

###############################################################################
# BASE CLASS
extends q{Net::SAJAX::Exception};

###############################################################################
# ALL IMPORTS BEFORE THIS WILL BE ERASED
use namespace::clean 0.04 -except => [qw(meta)];

###############################################################################
# ATTRIBUTES
has javascript_error => (
	is            => 'ro',
	isa           => 'JE::Object::Error',
	documentation => q{The JavaScript evaluation error which occurred},
	required      => 1,
);
has javascript_string => (
	is            => 'ro',
	isa           => 'Str',
	documentation => q{The JavaScript string that was evaluated},
	required      => 1,
);

###############################################################################
# MAKE MOOSE OBJECT IMMUTABLE
__PACKAGE__->meta->make_immutable;

1;

__END__