|
Unicorn XML Toolkit Version 1.00.00 |
|||||||||
� PREV CLASS �� NEXT CLASS | FRAMES��NO FRAMES | |||||||||
SUMMARY: � CONSTR �|� FUNCTION �|�DATA | DETAIL: � CONSTR �|� FUNCTION �|�DATA |
class CSaxParseException: public CSaxException { public: CSaxParseException( const CString &strMessage, const XLocator &pLocator); CSaxParseException( const CString &strMessage, const XLocator &pLocator, IException *pException); CSaxParseException( const CString &strMessage, const CString &strPublicId, const CString &strSystemId, int nLineNumber, int nColumnNumber); CSaxParseException( const CString &strMessage, const CString &strPublicId, const CString &strSystemId, int nLineNumber, int nColumnNumber, IException *pException); ~CSaxParseException(); public: CString GetPublicId(); CString GetSystemId(); int GetLineNumber(); int GetColumnNumber(); };
The XML parse error or warning.
This exception will include information for locating the error
in the original XML document. Note that although the application
will receive the
CSaxParseException
object
as the argument to the handlers
in the
CErrorHandler
class,
the application is not actually required to throw the exception;
instead, it can simply read the information in it and take a
different action.
Since this exception is a subclass of
CSaxException
,
it inherits the ability to wrap another exception.
CLocator
Constructor/Destructor Summary | |
CSaxParseException
(const CString &strMessage, const XLocator &pLocator);
����������Constructs the SAX parse exception from a message and a locator. |
|
CSaxParseException
(const CString &strMessage, const XLocator &pLocator, IException *pException);
����������Constructs the SAX parse exception, wrapping an existing exception. |
|
CSaxParseException
(const CString &strMessage, const CString &strPublicId, const CString &strSystemId, int nLineNumber, int nColumnNumber);
����������Constructs the SAX parse exception. |
|
CSaxParseException
(const CString &strMessage, const CString &strPublicId, const CString &strSystemId, int nLineNumber, int nColumnNumber, IException *pException);
����������Constructs the SAX parse exception with the embedded exception. |
|
~CSaxParseException
();
����������Destroys the SAX parse exception. |
Function Summary | |
CString
|
GetPublicId
();
����������Gets the public identifier of the entity where the exception occurred. |
CString
|
GetSystemId
();
����������Gets the system identifier of the entity where the exception occurred. |
int
|
GetLineNumber
();
����������Gets the line number of the end of the text where the exception occurred. |
int
|
GetColumnNumber
();
����������Gets the column number of the end of the text where the exception occurred. |
Constructor/Destructor Detail |
CSaxParseException( const CString &strMessage, const XLocator &pLocator);
Constructs the SAX parse exception from a message and a locator.
This constructor is especially useful when an application is
creating its own exception from within a
CContentHandler
callback.
strMessage
- the error or warning messagepLocator
- the locator object for
the error or warning (may be
NULL
)CSaxParseException( const CString &strMessage, const XLocator &pLocator, IException *pException);
Constructs the SAX parse exception, wrapping an existing exception.
This constructor is especially useful when an application is
creating its own exception from within a
CContentHandler
callback, and needs to wrap an existing exception that is not a
subclass of
CSaxException
.
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 (may be
NULL
)pException
- any exceptionCSaxParseException( const CString &strMessage, const CString &strPublicId, const CString &strSystemId, int nLineNumber, int nColumnNumber);
Constructs the SAX parse exception.
This constructor is most useful for reader developers.
If the system identifier is a URL, the reader must resolve it fully before creating the exception.
strMessage
- the error or warning messagestrPublicId
- the public identifer of the entity that generated
the error or warningstrSystemId
- the system identifer 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 warningCSaxParseException( const CString &strMessage, const CString &strPublicId, const CString &strSystemId, int nLineNumber, int nColumnNumber, IException *pException);
Constructs the SAX parse exception with the embedded exception.
This constructor is most useful for reader developers who
need to wrap an exception that is not a subclass of
CSaxException
.
If the system identifier is a URL, the reader must resolve it fully before creating the exception.
strMessage
- the error or warning message, or the empty string to use
the message from the embedded exceptionstrPublicId
- the public identifer of the entity that generated
the error or warningstrSystemId
- the system identifer 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 warningpException
- another exception to embed in this one~CSaxParseException();
Destroys the SAX parse exception.
Function Detail |
CString GetPublicId();
Gets the public identifier of the entity where the exception occurred.
CString GetSystemId();
Gets the system identifier of the entity where the exception occurred.
If the system identifier is a URL, it will be resolved fully.
int GetLineNumber();
Gets the line number of the end of the text where the exception occurred.
-1
if none is availableint GetColumnNumber();
Gets the column number of the end of the text where the exception occurred.
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 |