JsUnit 1.3
Project Developer Home doxygen

Error Class Reference

Inheritance diagram for Error:

Inheritance graph
[legend]
Collaboration diagram for Error:

Collaboration graph
[legend]
List of all members.

Detailed Description

Error class according ECMA specification.

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


Public Member Functions

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

Public Attributes

String message
 The error message.

Static Public Attributes

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


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:
msg The 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.

Reimplemented in JsUnitError.


Member Data Documentation

int Error::testable [static]

String Error::name [static]

The name of the Error class as String.

Reimplemented in ComparisonFailure, AssertionFailedError, InterfaceDefinitionError, JsUnitError, FunctionGluingError, and PrinterWriterError.

String Error::message

The error message.

Reimplemented in JsUnitError.


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 Fri Oct 19 23:10:58 2007 for JsUnit by doxygen 1.5.2