JsUnit
Project Developer Home doxygen

Public Member Functions | Public Attributes | Static Public Attributes | List of all members
Error Class Reference

Error class according ECMA specification. More...

Inheritance diagram for Error:
Inheritance graph
Collaboration diagram for Error:
Collaboration graph

Public Member Functions

void Error (String msg)
 Constructor. More...
 
String toString ()
 String representation of the error. More...
 

Public Attributes

String message
 The error message. More...
 

Static Public Attributes

static int testable
 
static String name
 The name of the Error class as String. More...
 

Detailed Description

Error class according ECMA specification.

This class is only active, if the ECMA implementation of the current engine does not support it.

Constructor & Destructor Documentation

void Error::Error ( String  msg)

Constructor.

The constructor initializes the message member with the argument msg.

Attention
The ECMA standard does not ensure, that the constructor of the internal Error class may be called by derived objects. It will normally return a new Error instance if called as function.
Parameters
msgThe error message.

Member Function Documentation

String Error::toString ( )

String representation of the error.

Returns
Returns a String containing the Error class name and the error message.
Attention
The format of the returned string is not defined by ECMA and is up to the vendor only. This implementation follows the behavior of Mozilla.org's SpiderMonkey.

Member Data Documentation

String Error::message

The error message.

String Error::name
static

The name of the Error class as String.

int Error::testable
static

The documentation for this class was generated from the following file:

JsUnit © 1999, 2000, 2001, 2002, 2003, 2006, 2007 by Jörg Schaible
Generated on Wed Apr 15 2015 02:33:07 for JsUnit by doxygen 1.8.5