JE::Object::Error - JavaScript Error object class
use JE::Object::Error; # Somewhere in code called by an eval{} die new JE::Object::Error $global, "(Error message here)"; # Later: $@->prop('message'); # error message $@->prop('name'); # 'Error' "$@"; # 'Error: ' plus the error message
This class implements JavaScript Error objects for JE. This is the base class for all JavaScript's native error objects. (See "SEE ALSO", below.)
See JE::Types for descriptions of most of the methods. Only what is specific to JE::Object::Error is explained here.
The value method returns the string 'Error: ' followed by the error message. 'Error' will be replaced with the class name (the result of calling ->class) for subclasses.
value
->class
To install JE, copy and paste the appropriate command in to your terminal.
cpanm
cpanm JE
CPAN shell
perl -MCPAN -e shell install JE
For more information on module installation, please visit the detailed CPAN module installation guide.