A ZorbaException is the base class for all Zorba exceptions.
More...
#include <zorba/zorba_exception.h>
The format to print exceptions as to an ostream.
Enumerator |
---|
format_text |
plain text
|
format_xml |
XML without unnecessary whitespace.
|
format_xml_indented |
XML with newlines and indentation.
|
Definition at line 49 of file zorba_exception.h.
Copy-constructs a ZorbaException.
- Parameters
-
from | The ZorbaException to copy from. |
zorba::ZorbaException::~ZorbaException |
( |
| ) |
throw () |
Destroys this ZorbaException.
zorba::ZorbaException::ZorbaException |
( |
Diagnostic const & |
diagnostic, |
|
|
char const * |
raise_file, |
|
|
line_type |
raise_line, |
|
|
char const * |
message |
|
) |
| |
|
protected |
Constructs a ZorbaException.
- Parameters
-
diagnostic | The diagnostic. |
raise_file | The C++ source-code file name whence the exception was raised. |
raise_line | The C++ source-code line number whence the exception was raised. |
message | The diagnostic message. |
zorba::ZorbaException::ZorbaException |
( |
serialization::Archiver & |
| ) |
|
|
protected |
Diagnostic const& zorba::ZorbaException::diagnostic |
( |
| ) |
const throw () |
|
inline |
static print_format zorba::ZorbaException::get_print_format |
( |
std::ostream & |
o | ) |
|
|
inlinestatic |
Gets the current print_format associated with the given ostream.
- Parameters
-
o | The ostream to get the print_format of. |
- Returns
- Returns said print_format.
Definition at line 90 of file zorba_exception.h.
Assigns this ZorbaException from another.
- Parameters
-
from | The ZorbaException to assign from. |
- Returns
- Returns
*this
.
virtual void zorba::ZorbaException::polymorphic_throw |
( |
| ) |
const |
|
virtual |
std::ostream& zorba::ZorbaException::print |
( |
std::ostream & |
| ) |
const |
|
protected |
Prints the exception to the given ostream.
- Parameters
-
o | The ostream to print to. |
- Returns
- Returns o.
Referenced by zorba::operator<<().
virtual std::ostream& zorba::ZorbaException::print_impl |
( |
std::ostream & |
o | ) |
const |
|
protectedvirtual |
char const* zorba::ZorbaException::raise_file |
( |
| ) |
const throw () |
|
inline |
Gets the C++ source-code file name whence this exception was raised.
- Returns
- Returns said file name.
Definition at line 114 of file zorba_exception.h.
line_type zorba::ZorbaException::raise_line |
( |
| ) |
const throw () |
|
inline |
Gets the C++ source-code line number whence this exception was raised.
- Returns
- Returns said line number.
Definition at line 123 of file zorba_exception.h.
void zorba::ZorbaException::set_diagnostic |
( |
Diagnostic const & |
diagnostic | ) |
throw () |
|
inline |
Sets the diagnostic.
- Parameters
-
diagnostic | The diagnostic. |
Definition at line 105 of file zorba_exception.h.
static void zorba::ZorbaException::set_print_format |
( |
std::ostream & |
o, |
|
|
print_format |
f |
|
) |
| |
|
inlinestatic |
Sets the print_format of the given ostream.
- Parameters
-
o | The ostream to set the print_format of. |
f | The print_format value. |
Definition at line 133 of file zorba_exception.h.
Referenced by zorba::operator<<().
char const* zorba::ZorbaException::what |
( |
| ) |
const throw () |
std::ostream& operator<< |
( |
std::ostream & |
o, |
|
|
ZorbaException const & |
e |
|
) |
| |
|
friend |
void serialization::operator& |
( |
serialization::Archiver & |
, |
|
|
ZorbaException *& |
|
|
) |
| |
|
friend |
The documentation for this class was generated from the following file: