A Diagnostic is the base class for all Zorba diagnostics (errors and warnings). More...
#include <zorba/diagnostic.h>
Public Member Functions | |
virtual diagnostic::category | category () const |
Gets the category of this diagnostic. | |
virtual diagnostic::kind | kind () const |
Gets the kind of this diagnostic. | |
virtual char const * | message () const |
Gets the message of this diagnostic. | |
virtual diagnostic::QName const & | qname () const =0 |
Gets the QName for this diagnostic. | |
Protected Member Functions | |
virtual Diagnostic const * | clone () const =0 |
virtual void | destroy () const |
Destroys a Diagnostic. | |
virtual | ~Diagnostic () |
Friends | |
class | ZorbaException |
A Diagnostic is the base class for all Zorba diagnostics (errors and warnings).
virtual zorba::Diagnostic::~Diagnostic | ( | ) | [protected, virtual] |
virtual diagnostic::category zorba::Diagnostic::category | ( | ) | const [virtual] |
Gets the category of this diagnostic.
Reimplemented in zorba::internal::SystemDiagnostic, and zorba::UserError.
virtual Diagnostic const* zorba::Diagnostic::clone | ( | ) | const [protected, pure virtual] |
Implemented in zorba::internal::SystemDiagnostic, and zorba::UserError.
virtual void zorba::Diagnostic::destroy | ( | ) | const [protected, virtual] |
Destroys a Diagnostic.
This is the only way a Diagnostic should be destroyed.
Reimplemented in zorba::internal::SystemDiagnostic.
virtual diagnostic::kind zorba::Diagnostic::kind | ( | ) | const [virtual] |
Gets the kind of this diagnostic.
Reimplemented in zorba::internal::SystemDiagnostic.
virtual char const* zorba::Diagnostic::message | ( | ) | const [virtual] |
Gets the message of this diagnostic.
virtual diagnostic::QName const& zorba::Diagnostic::qname | ( | ) | const [pure virtual] |
Gets the QName for this diagnostic.
Implemented in zorba::internal::SystemDiagnostic, and zorba::UserError.
Referenced by zorba::operator==().
friend class ZorbaException [friend] |
Definition at line 360 of file diagnostic.h.