|
Unicorn XML Toolkit Version 1.00.00 |
|||||||||
� PREV CLASS �� NEXT CLASS | FRAMES��NO FRAMES | |||||||||
SUMMARY: � CONSTR �|� FUNCTION �|�DATA | DETAIL: � CONSTR �|� FUNCTION �|�DATA |
class CEcmaScriptException: public IException { public: CEcmaScriptException(IException *pException); ~CEcmaScriptException(); public: CString ToString(); public: void SetProgramName(const CString &strProgramName); void SetFunctionName(const CString &strFunctionName); void SetLineNumber(int nLineNumber); void SetValue(const XValue &pValue); void SetObject(const XObject &pObject); CString GetProgramName(); CString GetFunctionName(); int GetLineNumber(); XValue GetValue(); XObject GetObject(); };
The top-level ECMAScript exception.
Top-level ECMAScript exceptions are used as wrappers for all exceptions thrown during evaluation of ECMAScript programs.
CValue, CObject
Constructor/Destructor Summary | |
CEcmaScriptException
(IException *pException);
����������Constructs the ECMAScript exception. |
|
~CEcmaScriptException
();
����������Destroys the ECMAScript exception. |
Function Summary | |
CString
|
ToString
();
����������Returns the string representation of this ECMAScript exception. |
void
|
SetProgramName
(const CString &strProgramName);
����������Sets a program name associated with this ECMAScript exception. |
void
|
SetFunctionName
(const CString &strFunctionName);
����������Sets a function name associated with this ECMAScript exception. |
void
|
SetLineNumber
(int nLineNumber);
����������Sets a source line number associated with this ECMAScript exception. |
void
|
SetValue
(const XValue &pValue);
����������Sets a value associated with this ECMAScript exception. |
void
|
SetObject
(const XObject &pObject);
����������Sets an object associated with this ECMAScript exception. |
CString
|
GetProgramName
();
����������Returns a program name associated with this ECMAScript exception. |
CString
|
GetFunctionName
();
����������Returns a function name associated with this ECMAScript exception. |
int
|
GetLineNumber
();
����������Returns a source line number associated with this ECMAScript exception. |
XValue
|
GetValue
();
����������Returns a value associated with this ECMAScript exception. |
XObject
|
GetObject
();
����������Returns an object associated with the ECMAScript exception. |
Constructor/Destructor Detail |
CEcmaScriptException(IException *pException);
Constructs the ECMAScript exception.
pException
- the exception to be wrapped
in this ECMAScript exception~CEcmaScriptException();
Destroys the ECMAScript exception.
Function Detail |
CString ToString();
Returns the string representation of this ECMAScript exception.
void SetProgramName(const CString &strProgramName);
Sets a program name associated with this ECMAScript exception.
strProgramName
- the program namevoid SetFunctionName(const CString &strFunctionName);
Sets a function name associated with this ECMAScript exception.
strFunctionName
- the function namevoid SetLineNumber(int nLineNumber);
Sets a source line number associated with this ECMAScript exception.
nLineNumber
- the source line numbervoid SetValue(const XValue &pValue);
Sets a value associated with this ECMAScript exception.
pValue
- the valuevoid SetObject(const XObject &pObject);
Sets an object associated with this ECMAScript exception.
pValue
- the objectCString GetProgramName();
Returns a program name associated with this ECMAScript exception.
CString GetFunctionName();
Returns a function name associated with this ECMAScript exception.
int GetLineNumber();
Returns a source line number associated with this ECMAScript exception.
-1
if there is no source line number associatedXValue GetValue();
Returns a value associated with this ECMAScript exception.
NULL
if there is no value associatedXObject GetObject();
Returns an object associated with the ECMAScript exception.
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 |