|
Unicorn XML Toolkit Version 1.00.00 |
|||||||||
� PREV CLASS �� NEXT CLASS | FRAMES��NO FRAMES | |||||||||
SUMMARY: � CONSTR �|� FUNCTION �|�DATA | DETAIL: � CONSTR �|� FUNCTION �|�DATA |
class CRuntimeError: public IException { public: enum { objectDefaultValue, objectConstruct, objectCall, objectMatch, referenceGetBase, referenceGetPropertyName, referenceGetValue, referencePutValue, convertToPrimitive, convertToObject, newExpression, functionCallExpression, functionToString, newArray, arrayPut, stringObjectRequired, booleanObjectRequired, numberObjectRequired, numberToString, dateObjectRequired, regExpObjectRequired, invalidFormalParameterListSyntax, invalidFunctionBodySyntax, evalCodeSyntaxError, invalidRegExpFlags }; public: CRuntimeError(int nCode, const XValue &pValue); CRuntimeError(int nCode, const XObject &pObject); ~CRuntimeError(); public: CString ToString(); public: XValue GetValue(); XObject GetObject(); };
The exception thrown on ECMAScript runtime errors.
Every exception of this class is assigned an integer exception code. Allowed values for exception codes are specified by the anonymous enumeration contained in this class declaration.
To provide more detailed exception information, one of the following entities is associated with every object of this class:
CValue, CObject
Constructor/Destructor Summary | |
CRuntimeError
(int nCode, const XValue &pValue);
����������Constructs the runtime error with the specified value. |
|
CRuntimeError
(int nCode, const XObject &pObject);
����������Constructs the runtime error with the specified object. |
|
~CRuntimeError
();
����������Destroys the runtime error. |
Function Summary | |
CString
|
ToString
();
����������Returns the string representation of this runtime error. |
XValue
|
GetValue
();
����������Returns a value associated with this runtime error. |
XObject
|
GetObject
();
����������Returns an object associated with this runtime error. |
Constructor/Destructor Detail |
CRuntimeError(int nCode, const XValue &pValue);
Constructs the runtime error with the specified value.
nCode
- the error codepValue
- the value associated with the errorCRuntimeError(int nCode, const XObject &pObject);
Constructs the runtime error with the specified object.
nCode
- the error codepObject
- the object associated with the error~CRuntimeError();
Destroys the runtime error.
Function Detail |
CString ToString();
Returns the string representation of this runtime error.
XValue GetValue();
Returns a value associated with this runtime error.
NULL
if there is no value associatedXObject GetObject();
Returns an object associated with this runtime error.
NULL
if there is no object associated
|
Unicorn XML Toolkit Version 1.00.00 |
|||||||||
� PREV CLASS �� NEXT CLASS | FRAMES��NO FRAMES | |||||||||
SUMMARY: � CONSTR �|� FUNCTION �|�DATA | DETAIL: � CONSTR �|� FUNCTION �|�DATA |