An XQueryException is-a ZorbaException for errors with the user's XQuery.
More...
#include <zorba/xquery_exception.h>
List of all members.
Friends |
XQueryException | make_xquery_exception (char const *, ZorbaException::line_type, Diagnostic const &, internal::diagnostic::parameters const &, internal::diagnostic::location const &) |
XQueryException * | new_xquery_exception (char const *, ZorbaException::line_type, Diagnostic const &, internal::diagnostic::parameters const &, internal::diagnostic::location const &) |
void | serialization::operator& (serialization::Archiver &, ZorbaException *&) |
void | set_source (ZorbaException &, char const *, line_type, column_type, line_type, column_type, bool) |
class | UserException |
Detailed Description
An XQueryException is-a ZorbaException for errors with the user's XQuery.
An XQueryException therefore also contains the XQuery source URI, line, and column numbers.
- Examples:
- context.cpp, and errors.cpp.
Definition at line 37 of file xquery_exception.h.
Member Typedef Documentation
Constructor & Destructor Documentation
Copy-constructs an XQueryException.
- Parameters:
-
from | The XQueryException to copy from. |
zorba::XQueryException::~XQueryException |
( |
| ) |
throw () |
Destroys this XQueryException.
zorba::XQueryException::XQueryException |
( |
serialization::Archiver & |
ar | ) |
|
|
protected |
Member Function Documentation
Diagnostic const& zorba::ZorbaException::diagnostic |
( |
| ) |
const throw () |
|
inlineinherited |
bool zorba::XQueryException::has_source |
( |
| ) |
const throw () |
|
inline |
Checks whether the XQuery source location has been set.
- Returns:
- Returns
true
only if the source location has been set.
Definition at line 82 of file xquery_exception.h.
Assigns this XQueryException from another.
- Parameters:
-
from | The XQueryException to assign from. |
- Returns:
- Returns
*this
.
void zorba::XQueryException::polymorphic_throw |
( |
| ) |
const |
|
virtual |
std::ostream& zorba::XQueryException::print |
( |
std::ostream & |
o | ) |
const |
|
protectedvirtual |
Prints the exception to the given ostream.
- Parameters:
-
o | The ostream to print to. |
- Returns:
- Returns o.
Reimplemented from zorba::ZorbaException.
char const* zorba::ZorbaException::raise_file |
( |
| ) |
const throw () |
|
inlineinherited |
Gets the C++ source-code file name whence this exception was raised.
- Returns:
- Returns said file name.
Definition at line 95 of file zorba_exception.h.
line_type zorba::ZorbaException::raise_line |
( |
| ) |
const throw () |
|
inlineinherited |
Gets the C++ source-code line number whence this exception was raised.
- Returns:
- Returns said line number.
Definition at line 104 of file zorba_exception.h.
void zorba::ZorbaException::set_diagnostic |
( |
Diagnostic const & |
diagnostic | ) |
throw () |
|
inlineinherited |
Sets the diagnostic.
- Parameters:
-
diagnostic | The diagnostic. |
Definition at line 86 of file zorba_exception.h.
Sets the XQuery source-code URI name, line, and column numbers.
- Parameters:
-
uri | The source-code URI name. |
line | The source-code URI line number. |
column | The source-code URI column number. |
line_end | The source-code URI end line number. |
column_end | The source-code URI end column number. |
column_type zorba::XQueryException::source_column |
( |
| ) |
const throw () |
|
inline |
Gets the XQuery source-code column number containing the error.
- Returns:
- Returns said column number or 0 if unset.
Definition at line 109 of file xquery_exception.h.
column_type zorba::XQueryException::source_column_end |
( |
| ) |
const throw () |
|
inline |
Gets the XQuery source-code end column number containing the error.
- Returns:
- Returns said column number or 0 if unset.
Definition at line 127 of file xquery_exception.h.
line_type zorba::XQueryException::source_line |
( |
| ) |
const throw () |
|
inline |
Gets the XQuery source-code line number containing the error.
- Returns:
- Returns said line number or 0 if unset.
Definition at line 100 of file xquery_exception.h.
line_type zorba::XQueryException::source_line_end |
( |
| ) |
const throw () |
|
inline |
Gets the XQuery source-code end line number containing the error.
- Returns:
- Returns said line number or 0 if unset.
Definition at line 118 of file xquery_exception.h.
char const* zorba::XQueryException::source_uri |
( |
| ) |
const throw () |
|
inline |
Gets the XQuery source URI containing the error.
- Returns:
- Returns said URI or the empty string if unset.
Definition at line 91 of file xquery_exception.h.
char const* zorba::ZorbaException::what |
( |
| ) |
const throw () |
|
inherited |
Friends And Related Function Documentation
void serialization::operator& |
( |
serialization::Archiver & |
, |
|
|
ZorbaException *& |
|
|
) |
| |
|
friend |
The documentation for this class was generated from the following file: