zorba::UserError

#include <zorba/error.h>

Inherited from: zorba::Diagnostic

A UserError is-a Diagnostic for user-defined errors via fn:error().

Private Types

internal::VariableQName< std::string >

QName

Private Attributes

QName

qname_

Friend Classes

friend UserError

make_user_error(char const *, char const *, char const *)

friend void

serialization::operator&(serialization::Archiver &, const Diagnostic *&)

friend class

UserException

friend class

ZorbaException

Public Functions

diagnostic::kind

kind() const

Gets the kind of this diagnostic.

char const *

message() const

Gets the message of this diagnostic.

UserError &

operator=(UserError const &from)

Assigns this UserError from another.

diagnostic::QName const &

qname() const

Gets the QName for this diagnostic.

UserError(UserError const &from)

Copy-constructs a UserError.

~UserError()

Destroys this UserError.

Protected Functions

Diagnostic const *

clone() const

void

destroy() const

Destroys a Diagnostic.

Private Functions

UserError(char const *ns, char const *prefix, char const *localname)

Constructs a UserError.

UserError(serialization::Archiver &)

Private Types

QName

internal::VariableQName< std::string > QName

Private Attributes

qname_

QName qname_

Friend Classes

make_user_error

friend UserError make_user_error(char const *, char const *, char const *)

serialization::operator&

friend void serialization::operator&(serialization::Archiver &, const Diagnostic *&)

UserException

friend class UserException

ZorbaException

friend class ZorbaException

Public Functions

kind

diagnostic::kind kind() const

Gets the kind of this diagnostic.

Returns

Returns said kind.

message

char const * message() const

Gets the message of this diagnostic.

Returns

Returns said message.

operator=

UserError & operator=(UserError const &from)

Assigns this UserError from another.

Parameters

from The UserError to assign from.

Returns

Returns *this.

qname

diagnostic::QName const & qname() const

Gets the QName for this diagnostic.

Returns

Returns said QName.

UserError

 UserError(UserError const &from)

Copy-constructs a UserError.

Parameters

from The UserError to copy from.

~UserError

 ~UserError()

Destroys this UserError.

Protected Functions

clone

Diagnostic const * clone() const

destroy

void destroy() const

Destroys a Diagnostic.

This is the only way a Diagnostic should be destroyed.

Private Functions

UserError

 UserError(char const *ns, char const *prefix, char const *localname)

Constructs a UserError.

Parameters

ns The error's namespace URI.
prefix The error's prefix.
localname The error's local-name.

UserError

 UserError(serialization::Archiver &)