> The XQuery Processor
#include <zorba/exception.h>

Public Member Functions | |
| virtual unsigned int | getColumnBegin () const |
| Get the column number in the query where the error occured. | |
| virtual String | getDescription () const |
| Get the descriptionof the error that is reported by this exception. | |
| virtual ZorbaError::ErrorCode | getErrorCode () const |
| Get the ErrorCode of the error that is reported by this exception. | |
| virtual unsigned int | getFileLineNumber () const |
| Get the line number in the source file in which the error occured. | |
| virtual String | getFileName () const |
| Get the name of the source file in which the error occured. | |
| virtual unsigned int | getLineBegin () const |
| Get the line number in the query where the error occured. | |
| virtual | ~StaticException () throw () |
| Destructor. | |
Protected Member Functions | |
| StaticException (const ZorbaError::ErrorCode &, const String &, const String &afilename, unsigned int afilelinenumber, unsigned int linebegin, unsigned int columnbegin) | |
| Proctected constructor - only the Zorba engine can construct and throw exceptions. | |
Protected Attributes | |
| unsigned int | theColumnBegin |
| String | theDescription |
| ZorbaError::ErrorCode | theErrorCode |
| unsigned int | theFileLineNumber |
| String | theFileName |
| unsigned int | theLineBegin |
Friends | |
| std::ostream & | operator<< (std::ostream &, const QueryException &) |
| Print information about the exception to the given output stream. | |
| std::ostream & | operator<< (std::ostream &, const StaticException &) |
| Print information about the exception to the given output stream. | |
| class | ZorbaImpl |
context.cpp, errors.cpp, and simple.cpp.
Definition at line 152 of file exception.h.
| virtual zorba::StaticException::~StaticException | ( | ) | throw () [virtual] |
Destructor.
| zorba::StaticException::StaticException | ( | const ZorbaError::ErrorCode & | , | |
| const String & | , | |||
| const String & | afilename, | |||
| unsigned int | afilelinenumber, | |||
| unsigned int | linebegin, | |||
| unsigned int | columnbegin | |||
| ) | [protected] |
Proctected constructor - only the Zorba engine can construct and throw exceptions.
| virtual unsigned int zorba::QueryException::getColumnBegin | ( | ) | const [virtual, inherited] |
Get the column number in the query where the error occured.
| virtual String zorba::ZorbaException::getDescription | ( | ) | const [virtual, inherited] |
Get the descriptionof the error that is reported by this exception.
| virtual ZorbaError::ErrorCode zorba::ZorbaException::getErrorCode | ( | ) | const [virtual, inherited] |
Get the ErrorCode of the error that is reported by this exception.
| virtual unsigned int zorba::ZorbaException::getFileLineNumber | ( | ) | const [virtual, inherited] |
Get the line number in the source file in which the error occured.
Note that this information is mainly for debugging purposes.
| virtual String zorba::ZorbaException::getFileName | ( | ) | const [virtual, inherited] |
Get the name of the source file in which the error occured.
Note that this information is mainly for debugging purposes.
| virtual unsigned int zorba::QueryException::getLineBegin | ( | ) | const [virtual, inherited] |
Get the line number in the query where the error occured.
| std::ostream& operator<< | ( | std::ostream & | , | |
| const QueryException & | ||||
| ) | [friend, inherited] |
Print information about the exception to the given output stream.
| std::ostream& operator<< | ( | std::ostream & | , | |
| const StaticException & | ||||
| ) | [friend] |
Print information about the exception to the given output stream.
friend class ZorbaImpl [friend] |
unsigned int zorba::QueryException::theColumnBegin [protected, inherited] |
Definition at line 118 of file exception.h.
String zorba::ZorbaException::theDescription [protected, inherited] |
Definition at line 71 of file exception.h.
ZorbaError::ErrorCode zorba::ZorbaException::theErrorCode [protected, inherited] |
Definition at line 70 of file exception.h.
unsigned int zorba::ZorbaException::theFileLineNumber [protected, inherited] |
Definition at line 73 of file exception.h.
String zorba::ZorbaException::theFileName [protected, inherited] |
Definition at line 72 of file exception.h.
unsigned int zorba::QueryException::theLineBegin [protected, inherited] |
Definition at line 117 of file exception.h.