JsUnit 1.3
Project Developer Home doxygen

JsUnitError Class Reference

Inheritance diagram for JsUnitError:

Inheritance graph
[legend]
Collaboration diagram for JsUnitError:

Collaboration graph
[legend]
List of all members.

Detailed Description

JsUnitError class.

Since ECMA does not define any inheritability of the Error class and the class itself is highly vender specific, JsUnit uses its own base class for all errors in the framework.


Public Member Functions

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

Public Attributes

int message
 The error message.

Static Public Attributes

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


Constructor & Destructor Documentation

void JsUnitError::JsUnitError ( 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.
Attention:
This constructor may not be called as normal function.


Member Function Documentation

String JsUnitError::toString (  ) 

String representation of the error.

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.

Returns:
Returns a String containing the Error class name and the error message.

Reimplemented from Error.


Member Data Documentation

String JsUnitError::name [static]

The name of the Error class as String.

Reimplemented from Error.

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

int JsUnitError::message

The error message.

Reimplemented from Error.


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:11:09 2007 for JsUnit by doxygen 1.5.2