Saxon/C  1.1.2
Saxon Processor library for C/C++/PHP
 All Classes Functions Variables
Public Member Functions | List of all members
SaxonApiException Class Reference

#include <SaxonProcessor.h>

Public Member Functions

 SaxonApiException ()
 
 SaxonApiException (const SaxonApiException &ex)
 
 SaxonApiException (const char *ec, const char *exM)
 
 SaxonApiException (const char *ec, const char *exM, bool typeErr, bool stat, bool glob, int l)
 
void add (const char *ec, const char *exM, bool typeErr, bool stat, bool glob, int l)
 
 ~SaxonApiException ()
 
const char * getErrorCode (int i)
 
int getLineNumber (int i)
 
bool isGlobalError (int i)
 
bool isStaticError (int i)
 
bool isTypeError (int i)
 
void clear ()
 
int count ()
 
const char * getErrorMessage (int i)
 
const char * getErrorMessages ()
 
MyException getException (int i)
 

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::SaxonApiException ( )
inline

A default Constructor. Create a SaxonApiException

SaxonApiException::SaxonApiException ( const SaxonApiException ex)
inline

A Copy constructor. Create a SaxonApiException

Parameters
ex- The exception object to copy
SaxonApiException::SaxonApiException ( const char *  ec,
const char *  exM 
)
inline

A constructor. Create a SaxonApiException

Parameters
ec- The error code of the underlying exception thrown, if known
exM- The error message of the underlying exception thrown, if known
SaxonApiException::SaxonApiException ( const char *  ec,
const char *  exM,
bool  typeErr,
bool  stat,
bool  glob,
int  l 
)
inline

A constructor. Create a SaxonApiException

Parameters
ec- The error code of the underlying exception thrown, if known
exM- The error message of the underlying exception thrown, if known
typeErr- Flag indicating if the error is a type error
stat- Flag indicating a static error
glob- Flag for if the error is global
l- Line number information of where the error occurred
SaxonApiException::~SaxonApiException ( )
inline

A destructor.

Member Function Documentation

void SaxonApiException::add ( const char *  ec,
const char *  exM,
bool  typeErr,
bool  stat,
bool  glob,
int  l 
)
inline

Creates a SaxonApiException and adds it to a vector of exceptions

Parameters
ec- The error code of the underlying exception thrown, if known
exM- The error message of the underlying exception thrown, if known
typeErr- Flag indicating if the error is a type error
stat- Flag indicating a static error
glob- Flag for if the error is global
l- Line number information of where the error occurred
const char* SaxonApiException::getErrorCode ( int  i)
inline

Get the error code associated with the ith exception in the vector, if there is one

Parameters
i- ith exception in the vector
Returns
the associated error code, or null if no error code is available
const char* SaxonApiException::getErrorMessage ( int  i)
inline

Returns the detail message string of the ith throwable, if there is one

Parameters
i- ith exception in the vector
Returns
the detail message string of this Throwable instance (which may be null).
MyException SaxonApiException::getException ( int  i)
inline

Returns the ith Exception added, if there is one

Parameters
i- ith exception in the vector
Returns
MyException

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