zorba::ZorbaException Class Reference

Base class of all exceptions thrown by Zorba. More...

#include <zorba/exception.h>

Inheritance diagram for zorba::ZorbaException:

zorba::QueryException zorba::SystemException zorba::DynamicException zorba::SerializationException zorba::StaticException zorba::TypeException

List of all members.

Public Member Functions

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 ~ZorbaException () throw ()
 Destructor.

Protected Member Functions

 ZorbaException (const ZorbaError::ErrorCode &, const String &aDescription, const String &aFileName, unsigned int aFileLineNumber)
 Proctected constructor - only the Zorba engine can construct and throw exceptions.

Protected Attributes

String theDescription
ZorbaError::ErrorCode theErrorCode
unsigned int theFileLineNumber
String theFileName

Friends

class ZorbaImpl


Detailed Description

Base class of all exceptions thrown by Zorba.
Examples:

context.cpp, datamanager.cpp, errors.cpp, external_functions.cpp, sax2.cpp, and serialization.cpp.

Definition at line 26 of file exception.h.


Constructor & Destructor Documentation

virtual zorba::ZorbaException::~ZorbaException (  )  throw () [virtual]

Destructor.

zorba::ZorbaException::ZorbaException ( const ZorbaError::ErrorCode ,
const String aDescription,
const String aFileName,
unsigned int  aFileLineNumber 
) [protected]

Proctected constructor - only the Zorba engine can construct and throw exceptions.


Member Function Documentation

virtual String zorba::ZorbaException::getDescription (  )  const [virtual]

Get the descriptionof the error that is reported by this exception.

virtual ZorbaError::ErrorCode zorba::ZorbaException::getErrorCode (  )  const [virtual]

Get the ErrorCode of the error that is reported by this exception.

virtual unsigned int zorba::ZorbaException::getFileLineNumber (  )  const [virtual]

Get the line number in the source file in which the error occured.

Note that this information is mainly for debugging purposes.

Returns:
unsigned int the line number in the source file.

virtual String zorba::ZorbaException::getFileName (  )  const [virtual]

Get the name of the source file in which the error occured.

Note that this information is mainly for debugging purposes.

Returns:
String the name of the file where the error occured.


Friends And Related Function Documentation

friend class ZorbaImpl [friend]

Reimplemented in zorba::QueryException, zorba::DynamicException, zorba::StaticException, zorba::TypeException, zorba::SerializationException, and zorba::SystemException.

Definition at line 63 of file exception.h.


Member Data Documentation

String zorba::ZorbaException::theDescription [protected]

Definition at line 71 of file exception.h.

ZorbaError::ErrorCode zorba::ZorbaException::theErrorCode [protected]

Definition at line 70 of file exception.h.

unsigned int zorba::ZorbaException::theFileLineNumber [protected]

Definition at line 73 of file exception.h.

String zorba::ZorbaException::theFileName [protected]

Definition at line 72 of file exception.h.


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