Help-Site Computer Manuals
Software
Hardware
Programming
Networking
  Algorithms & Data Structures   Programming Languages   Revision Control
  Protocols
  Cameras   Computers   Displays   Keyboards & Mice   Motherboards   Networking   Printers & Scanners   Storage
  Windows   Linux & Unix   Mac

JE::Object::Error
JavaScript Error object class

JE::Object::Error - JavaScript Error object class


NAME

JE::Object::Error - JavaScript Error object class


SYNOPSIS


  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


DESCRIPTION

This class implements JavaScript Error objects for JE. This is the base class for all JavaScript's native error objects. (See SEE ALSO, below.)


METHODS

See the JE::Types manpage 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.

The new_constructor method (see JE::Object for details) does not work in subclasses. If you create a new_constructor method in your own subclass of JE::Object::Error, call $class->JE::Object::new_constructor instead of using SUPER.


SEE ALSO

JE
the JE::Object manpage
the JE::Object::Error::RangeError manpage
the JE::Object::Error::SyntaxError manpage
the JE::Object::Error::TypeError manpage
the JE::Object::Error::URIError manpage
Other classes to be added...
Programminig
Wy
Wy
yW
Wy
Programming
Wy
Wy
Wy
Wy