|
Unicorn XML Toolkit Version 1.00.00 |
|||||||||
� PREV CLASS �� NEXT CLASS | FRAMES��NO FRAMES | |||||||||
SUMMARY: � CONSTR �|� FUNCTION �|�DATA | DETAIL: � CONSTR �|� FUNCTION �|�DATA |
class CErrorHandler { public: CErrorHandler(); virtual ~CErrorHandler(); public: virtual bool Report( int nLineNumber, const CString &strMessage) = 0; };
The abstract interface for reporting parse errors.
An application must provide a derived class implementing this interface.
Constructor/Destructor Summary | |
CErrorHandler
();
����������Constructs the error handler. |
|
~CErrorHandler
();
����������Destroys the error handler. |
Function Summary | |
bool
|
Report
(int nLineNumber, const CString &strMessage);
����������Reports an error. |
Constructor/Destructor Detail |
CErrorHandler();
Constructs the error handler.
virtual ~CErrorHandler();
Destroys the error handler.
Function Detail |
virtual bool Report( int nLineNumber, const CString &strMessage) = 0;
Reports an error.
The value returned by this function can be used for limiting the number of parse errors allowed. The error handler might request termination of the parsing if the internal error counter implemented by this error handler exceeded the certain limit.
nLineNumber
- a line number in the ECMAScript program
at which the parse error occuredstrMessage
- text of the error messagetrue
if parsing can be continued;
false
if the application requested
parsing termination
|
Unicorn XML Toolkit Version 1.00.00 |
|||||||||
� PREV CLASS �� NEXT CLASS | FRAMES��NO FRAMES | |||||||||
SUMMARY: � CONSTR �|� FUNCTION �|�DATA | DETAIL: � CONSTR �|� FUNCTION �|�DATA |