![]() |
SaxonC 12.8.0
Saxon Processor library for C/C++, PHP and Python
|
#include <SaxonApiException.h>
Public Member Functions | |
SaxonApiException (bool staticError=false) | |
Default constructor. | |
SaxonApiException (const char *err) | |
A constructor. | |
SaxonApiException (const SaxonApiException &ex) | |
SaxonApiException copy constructor. | |
virtual const char * | what () |
Returns a pointer to the (constant) error description. | |
SaxonApiException (const char *message, const char *errorCode, const char *systemId, int linenumber) | |
A constructor. | |
virtual | ~SaxonApiException () throw () |
A destructor. | |
const char * | getErrorCode () |
Get the error code associated with the current exception, if it exists. | |
int | getLineNumber () |
Get the line number associated with the exception, if known. | |
const char * | getMessage () |
Returns the detail message string as a char array of the throwable, if there is one. | |
const char * | getMessageWithErrorCode () |
Returns the detail message string as a char array of the throwable, if there is one. | |
const char * | getCombinedStaticErrorMessages () |
Returns static error messages resulting from compile errors as a char array of the throwable, if there are any. | |
int | staticErrorCount () |
Returns the number of static errors encountered. | |
const char * | getSystemId () |
Get the URI of the module associated with the exception, if known. |
An exception thrown by the Saxon s9api API (Java). This is always a C++ wrapper for some other underlying exception in Java.
SaxonApiException::SaxonApiException | ( | bool | staticError = false | ) |
Default constructor.
Creates a SaxonApiException
SaxonApiException::SaxonApiException | ( | const char * | err | ) |
A constructor.
Create a SaxonApiException
err | - The detail message string of this throwable. |
SaxonApiException::SaxonApiException | ( | const SaxonApiException & | ex | ) |
SaxonApiException copy constructor.
ex | - the exception object to copy |
SaxonApiException::SaxonApiException | ( | const char * | message, |
const char * | errorCode, | ||
const char * | systemId, | ||
int | linenumber ) |
A constructor.
Create a SaxonApiException
message | - The detail message string of this throwable. |
errorCode | - The error code of the underlying exception thrown, if known |
systemId | - Get the URI of the module associated with the exception, if known. |
linenumber | - The line number in the stylesheet related to cause of the exception |
const char * SaxonApiException::getCombinedStaticErrorMessages | ( | ) |
Returns static error messages resulting from compile errors as a char array of the throwable, if there are any.
The caller does not need to deallocate memory.
const char * SaxonApiException::getErrorCode | ( | ) |
Get the error code associated with the current exception, if it exists.
The caller does not need to deallocate memory.
int SaxonApiException::getLineNumber | ( | ) |
Get the line number associated with the exception, if known.
const char * SaxonApiException::getMessage | ( | ) |
Returns the detail message string as a char array of the throwable, if there is one.
The caller does not need to deallocate memory.
const char * SaxonApiException::getMessageWithErrorCode | ( | ) |
Returns the detail message string as a char array of the throwable, if there is one.
The caller does not need to deallocate memory.
const char * SaxonApiException::getSystemId | ( | ) |
Get the URI of the module associated with the exception, if known.
Memory deallocation is handled internally.
|
virtual |
Returns a pointer to the (constant) error description.