JsUnit
Project Developer Home doxygen

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

JsUnitError class. More...

Inheritance diagram for JsUnitError:
Inheritance graph
Collaboration diagram for JsUnitError:
Collaboration graph

Public Member Functions

void JsUnitError (String msg)
 Constructor. More...
 
String toString ()
 String representation of the error. More...
 
- Public Member Functions inherited from Error
void Error (String msg)
 Constructor. More...
 
String toString ()
 String representation of the error. More...
 

Public Attributes

int message
 
- Public Attributes inherited from Error
String message
 The error message. More...
 

Static Public Attributes

static String name
 The name of the Error class as String. More...
 
- Static Public Attributes inherited from Error
static int testable
 
static String name
 The name of the Error class as String. More...
 

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.

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

Member Data Documentation

int JsUnitError::message
String JsUnitError::name
static

The name of the Error class as String.


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