SaxonC 12.5
Saxon Processor library for C/C++, PHP and Python
Loading...
Searching...
No Matches
Public Member Functions | List of all members
SaxonApiException Class Reference

#include <SaxonApiException.h>

Inheritance diagram for SaxonApiException:

Public Member Functions

 SaxonApiException (bool staticError=false)
 
 SaxonApiException (const char *err)
 
 SaxonApiException (const SaxonApiException &ex)
 
virtual const char * what ()
 
 SaxonApiException (const char *message, const char *errorCode, const char *systemId, int linenumber)
 
virtual ~SaxonApiException () throw ()
 
const char * getErrorCode ()
 
int getLineNumber ()
 
const char * getMessage ()
 
const char * getMessageWithErrorCode ()
 
const char * getCombinedStaticErrorMessages ()
 
int staticErrorCount ()
 
const char * getSystemId ()
 

Detailed Description

SaxonApiException. An exception thrown by the Saxon s9api API (Java). This is always a C++ wrapper for some other underlying exception in Java

Constructor & Destructor Documentation

◆ SaxonApiException() [1/4]

SaxonApiException::SaxonApiException ( bool staticError = false)

A default Constructor. Create a SaxonApiException

◆ SaxonApiException() [2/4]

SaxonApiException::SaxonApiException ( const char * err)

A constructor. Create a SaxonApiException

Parameters
err- The detail message string of this throwable.

◆ SaxonApiException() [3/4]

SaxonApiException::SaxonApiException ( const SaxonApiException & ex)

A Copy constructor. Create a SaxonApiException

Parameters
ex- The exception object to copy

◆ SaxonApiException() [4/4]

SaxonApiException::SaxonApiException ( const char * message,
const char * errorCode,
const char * systemId,
int linenumber )

A constructor. Create a SaxonApiException

Parameters
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

◆ ~SaxonApiException()

SaxonApiException::~SaxonApiException ( )
throw ( )
virtual

A destructor.

Member Function Documentation

◆ getCombinedStaticErrorMessages()

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.

Returns
the detail message string of this Throwable instance with the error code as prefix if there is an error code associated with the exception.

◆ getErrorCode()

const char * SaxonApiException::getErrorCode ( )

Get the error code associated with the exception, if it exists. The caller does not need to deallocate memory.

Returns
the associated error code, or null if no error code is available

Get the error code associated with the current exception

Returns
the associated error code, or nullptr if no error code is available

◆ getLineNumber()

int SaxonApiException::getLineNumber ( )

Get the line number associated with the exception, if known.

Returns
the line number (typically of a line in a stylesheet, query, or schema, but in the case of validation errors it may be a line in a source document); or -1 if not known

◆ getMessage()

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.

Returns
the detail message string of this Throwable instance (which may be null).

◆ getMessageWithErrorCode()

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.

Returns
the detail message string of this Throwable instance with the error code as prefix if there is an error code associated with the exception.

◆ getSystemId()

const char * SaxonApiException::getSystemId ( )

Get the URI of the module associated with the exception, if known.

◆ staticErrorCount()

int SaxonApiException::staticErrorCount ( )

Returns the number of static errors encountered

◆ what()

const char * SaxonApiException::what ( )
virtual

Returns a pointer to the (constant) error description.

Returns
A pointer to a const char*. The underlying memory is in possession of the Exception object. Callers must not attempt to free the memory.

The documentation for this class was generated from the following files: