A UserException is-an XQueryException for errors raised via fn:error().
More...
#include <zorba/user_exception.h>


Public Types | |
| typedef internal::diagnostic::location::column_type | column_type |
| typedef internal::error_object_type | error_object_type |
| typedef internal::diagnostic::location::line_type | line_type |
Public Member Functions | |
| Diagnostic const & | diagnostic () const throw () |
| Gets the diagnostic carried by this exception. More... | |
| error_object_type const & | error_object () const throw () |
| Gets the error object associated with this exception. More... | |
| bool | has_source () const throw () |
| Checks whether the XQuery source location has been set. More... | |
| UserException & | operator= (UserException const &from) |
| Assigns this UserException from another. More... | |
| void | polymorphic_throw () const |
| Throws itself polymorphically; see http://www.parashift.com/c++-faq-lite/exceptions.html#faq-17.16. More... | |
| XQueryStackTrace & | query_trace () throw () |
| Gets the XQuery stack trace, if any. More... | |
| XQueryStackTrace const & | query_trace () const throw () |
| Gets the XQuery stack trace, if any. More... | |
| char const * | raise_file () const throw () |
| Gets the C++ source-code file name whence this exception was raised. More... | |
| line_type | raise_line () const throw () |
| Gets the C++ source-code line number whence this exception was raised. More... | |
| void | set_diagnostic (Diagnostic const &diagnostic) throw () |
| Sets the diagnostic. More... | |
| void | set_source (char const *uri, line_type line, column_type column=0, line_type line_end=0, column_type column_end=0) |
| Sets the XQuery source-code URI name, line, and column numbers. More... | |
| column_type | source_column () const throw () |
| Gets the XQuery source-code column number containing the error. More... | |
| column_type | source_column_end () const throw () |
| Gets the XQuery source-code end column number containing the error. More... | |
| line_type | source_line () const throw () |
| Gets the XQuery source-code line number containing the error. More... | |
| line_type | source_line_end () const throw () |
| Gets the XQuery source-code end line number containing the error. More... | |
| char const * | source_uri () const throw () |
| Gets the XQuery source URI containing the error. More... | |
| UserException (UserException const &from) | |
| Copy-constructs a UserException. More... | |
| char const * | what () const throw () |
| ~UserException () throw () | |
| Destroys this UserException. More... | |
Protected Member Functions | |
| std::unique_ptr< ZorbaException > | clone () const |
| Clones this exception object. More... | |
| std::ostream & | print (std::ostream &o) const |
| Prints the exception to the given ostream. More... | |
Friends | |
| UserException | internal::make_user_exception (char const *, line_type, char const *, char const *, char const *, char const *, internal::diagnostic::location const &, error_object_type *) |
| UserException | internal::make_user_exception (char const *, line_type, Error const &, char const *, internal::diagnostic::location const &, error_object_type *) |
| void | serialization::operator& (serialization::Archiver &, ZorbaException *&) |
A UserException is-an XQueryException for errors raised via fn:error().
Definition at line 96 of file user_exception.h.
Definition at line 39 of file xquery_exception.h.
Definition at line 98 of file user_exception.h.
|
inherited |
Definition at line 44 of file zorba_exception.h.
| zorba::UserException::UserException | ( | UserException const & | from | ) |
Copy-constructs a UserException.
| from | The UserException to copy from. |
| zorba::UserException::~UserException | ( | ) | throw () |
Destroys this UserException.
|
protectedvirtual |
Clones this exception object.
Reimplemented from zorba::ZorbaException.
|
inlineinherited |
Gets the diagnostic carried by this exception.
Definition at line 71 of file zorba_exception.h.
|
inline |
Gets the error object associated with this exception.
Definition at line 125 of file user_exception.h.
|
inlineinherited |
Checks whether the XQuery source location has been set.
true only if the source location has been set. Definition at line 82 of file xquery_exception.h.
| UserException& zorba::UserException::operator= | ( | UserException const & | from | ) |
Assigns this UserException from another.
| from | The UserException to assign from. |
*this.
|
virtual |
Throws itself polymorphically; see http://www.parashift.com/c++-faq-lite/exceptions.html#faq-17.16.
Reimplemented from zorba::ZorbaException.
|
protectedvirtualinherited |
Prints the exception to the given ostream.
| o | The ostream to print to. |
Reimplemented from zorba::ZorbaException.
|
inlineinherited |
Gets the XQuery stack trace, if any.
Definition at line 136 of file xquery_exception.h.
|
inlineinherited |
Gets the XQuery stack trace, if any.
Definition at line 145 of file xquery_exception.h.
|
inlineinherited |
Gets the C++ source-code file name whence this exception was raised.
Definition at line 95 of file zorba_exception.h.
|
inlineinherited |
Gets the C++ source-code line number whence this exception was raised.
Definition at line 104 of file zorba_exception.h.
|
inlineinherited |
Sets the diagnostic.
| diagnostic | The diagnostic. |
Definition at line 86 of file zorba_exception.h.
|
inherited |
Sets the XQuery source-code URI name, line, and column numbers.
| 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. |
|
inlineinherited |
Gets the XQuery source-code column number containing the error.
Definition at line 109 of file xquery_exception.h.
|
inlineinherited |
Gets the XQuery source-code end column number containing the error.
Definition at line 127 of file xquery_exception.h.
|
inlineinherited |
Gets the XQuery source-code line number containing the error.
Definition at line 100 of file xquery_exception.h.
|
inlineinherited |
Gets the XQuery source-code end line number containing the error.
Definition at line 118 of file xquery_exception.h.
|
inlineinherited |
Gets the XQuery source URI containing the error.
Definition at line 91 of file xquery_exception.h.
|
inherited |
|
friend |
|
friend |
|
friend |