JE::Object::Error(3pm)

JE::Object::Error3pm

Javascript error object class

Usage

  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

Overview

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 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.

Releases

7 releases since Debian 7 (Wheezy); the text changed 5 times.

  1. 7
  2. 8
  3. 9–10
  4. 11
  5. 12
  6. 13

From libje-perl 0.066-4 in Debian 13 (Trixie). Parsed by carta from the page's man source.