zorba::ZorbaException#include <zorba/zorba_exception.h> A ZorbaException is the base class for all Zorba exceptions.Public Types
Private Attributes
Public Functions
Public Static Functions
Protected Functions
Private Static Functions
Friend Classes
Public Typesprint_format print_format The format to print exceptions as to an ostream.
Private Attributesmessage_std::string message_
raise_file_std::string raise_file_
Public FunctionsdiagnosticDiagnostic const & diagnostic() const Gets the diagnostic carried by this exception.
ReturnsReturns said diagnostic.operator=ZorbaException & operator=(ZorbaException const &from) Assigns this ZorbaException from another.
Parameters
ReturnsReturns *this.polymorphic_throwvoid polymorphic_throw() const Throws itself polymorphically; see http://www.parashift.com/c++-faq-lite/exceptions.html#faq-17.16.
raise_filechar const * raise_file() const Gets the C++ source-code file name whence this exception was raised.
ReturnsReturns said file name.raise_lineline_type raise_line() const Gets the C++ source-code line number whence this exception was raised.
ReturnsReturns said line number.set_diagnosticvoid set_diagnostic(Diagnostic const &diagnostic) Sets the diagnostic.
Parameters
whatchar const * what() const
ZorbaException ZorbaException(ZorbaException const &from) Copy-constructs a ZorbaException.
Parameters
~ZorbaException ~ZorbaException() Destroys this ZorbaException.
Public Static Functionsget_print_formatprint_format get_print_format(std::ostream &o) Gets the current print_format associated with the given ostream.
Parameters
ReturnsReturns said print_format.set_print_formatvoid set_print_format(std::ostream &o, print_format f) Sets the print_format of the given ostream.
Parameters
Protected FunctionscloneClones this exception object.
ReturnsReturns a clone of this exception.std::ostream & print(std::ostream &) const Prints the exception to the given ostream.
Parameters
ReturnsReturns o.print_implstd::ostream & print_impl(std::ostream &o) const
ZorbaException ZorbaException(Diagnostic const &diagnostic, char const *raise_file, line_type raise_line, char const *message) Constructs a ZorbaException.
Parameters
ZorbaException ZorbaException(serialization::Archiver &)
Private Static Functionsget_ios_format_indexint get_ios_format_index()
Friend Classesmake_zorba_exceptionfriend ZorbaException make_zorba_exception(char const *, line_type, Diagnostic const &, internal::diagnostic::parameters const &)
new_zorba_exceptionfriend ZorbaException * new_zorba_exception(char const *, line_type, Diagnostic const &, internal::diagnostic::parameters const &)
operator<<friend std::ostream & operator<<(std::ostream &, ZorbaException const &) Emits the given ZorbaException to the given ostream.
Parameters
ReturnsReturns o.serialization::operator&friend void serialization::operator&(serialization::Archiver &, ZorbaException *&)
|