|
Unicorn XML Toolkit Version 1.00.00 |
|||||||||
� PREV CLASS �� NEXT CLASS | FRAMES��NO FRAMES | |||||||||
SUMMARY: � CONSTR �|� FUNCTION �|�DATA | DETAIL: � CONSTR �|� FUNCTION �|�DATA |
class CParseException: public IException { public: CParseException( const CString &strMessage, const XLocator &pLocator, IException *e=NULL); CParseException( const CString &strMessage, const CString &strPublicId, const CString &strSystemId, int nLineNumber, int nColumnNumber, IException *e=NULL); public: CString ToString(); public: CString GetMessage() const; IException *GetException() const; CString GetPublicId() const; CString GetSystemId() const; int GetLineNumber() const; int GetColumnNumber() const; };
The exception representing an SXP parse error or warning.
This exception includes information for locating the error
in the original XML document. Note that although the application
will receive the
CParseException
as the argument
to the handlers in the
IErrorHandler
interface,
the application is not actually required to throw the exception;
instead, it can simply read the information in it and take
a different action.
ILocator
Constructor/Destructor Summary | |
CParseException
(const CString &strMessage, const XLocator &pLocator, IException *e=NULL);
����������Constructs the parse exception from a message and a locator. |
|
CParseException
(const CString &strMessage, const CString &strPublicId, const CString &strSystemId, int nLineNumber, int nColumnNumber, IException *e=NULL);
����������Constructs the parse exception. |
Function Summary | |
CString
|
ToString
();
����������Gets the string representation of this exception. |
CString
|
GetMessage
();
����������Gets the error or warning message associated with this exception. |
IException�*
|
GetException
();
����������Gets the exception wrapped by this parse exception. |
CString
|
GetPublicId
();
����������Gets the public identifier of the entity where this exception occured. |
CString
|
GetSystemId
();
����������Gets the system identifier of the entity where this exception occured. |
int
|
GetLineNumber
();
����������Gets the line number of the end of the text where this exception occured. |
int
|
GetColumnNumber
();
����������Gets the column number of the end of the text where this exception occured. |
Constructor/Destructor Detail |
CParseException( const CString &strMessage, const XLocator &pLocator, IException *e=NULL);
Constructs the parse exception from a message and a locator.
strMessage
- the error or warning message,
or the empty string to use the message from
the embedded exceptionpLocator
- the locator object for
the error or warning, or
NULL
if none is
suppliede
- any exception to be wrapped
in this parse exception, or
NULL
if none is suppliedCParseException( const CString &strMessage, const CString &strPublicId, const CString &strSystemId, int nLineNumber, int nColumnNumber, IException *e=NULL);
Constructs the parse exception.
strMessage
- the error or warning message,
or
NULL
to use the message from
the embedded exceptionstrPublicId
- the public identifier of the entity
that generated the error or warningstrSystemId
- the system identifier of the entity
that generated the error or warningnLineNumber
- the line number of the end of the text
that caused the error or warningnColumnNumber
- the column number of the end of the text
that caused the error or warninge
- any exception to be wrapped
in this parse exception, or
NULL
if none is suppliedFunction Detail |
CString ToString();
Gets the string representation of this exception.
CString GetMessage();
Gets the error or warning message associated with this exception.
IException *GetException();
Gets the exception wrapped by this parse exception.
NULL
if none is availableCString GetPublicId();
Gets the public identifier of the entity where this exception occured.
CString GetSystemId();
Gets the system identifier of the entity where this exception occured.
int GetLineNumber();
Gets the line number of the end of the text where this exception occured.
-1
if none is availableint GetColumnNumber();
Gets the column number of the end of the text where this exception occured.
The first column in a line is position 1.
-1
if none is available
|
Unicorn XML Toolkit Version 1.00.00 |
|||||||||
� PREV CLASS �� NEXT CLASS | FRAMES��NO FRAMES | |||||||||
SUMMARY: � CONSTR �|� FUNCTION �|�DATA | DETAIL: � CONSTR �|� FUNCTION �|�DATA |