#include <DOMError.hpp>
Public Types | |
Public constants | |
enum | ErrorSeverity { DOM_SEVERITY_WARNING = 0, DOM_SEVERITY_ERROR = 1, DOM_SEVERITY_FATAL_ERROR = 2 } |
The severity of the error described by the DOMError . More... | |
Public Member Functions | |
Functions introduced in DOM Level 3 | |
virtual short | getSeverity () const=0 |
Get the severity of the error. | |
virtual const XMLCh * | getMessage () const=0 |
Get the message describing the error that occured. | |
virtual DOMLocator * | getLocation () const=0 |
Get the location of the error. | |
virtual void * | getRelatedException () const=0 |
The related platform dependent exception if any. | |
virtual const XMLCh * | getType () const=0 |
A XMLCh* indicating which related data is expected in relatedData. | |
virtual void * | getRelatedData () const=0 |
The related DOMError.type dependent data if any. | |
virtual void | setSeverity (const short severity)=0 |
Set the severity of the error. | |
virtual void | setMessage (const XMLCh *const message)=0 |
Set the error message. | |
virtual void | setLocation (DOMLocator *const location)=0 |
Set the location of the error. | |
virtual void | setRelatedException (void *exc) const=0 |
The related platform dependent exception if any. | |
virtual void | setType (const XMLCh *type)=0 |
A XMLCh* indicating which related data is expected in relatedData. | |
virtual void | setRelatedData (void *relatedData)=0 |
The related DOMError.type dependent data if any. |
xercesc::DOMError::DOMError | ( | ) | [inline, protected] |
virtual xercesc::DOMError::~DOMError | ( | ) | [inline, virtual] |
Destructor.
xercesc::DOMError::DOMError | ( | ) | [inline, protected] |
virtual xercesc::DOMError::~DOMError | ( | ) | [inline, virtual] |
Destructor.
virtual short xercesc::DOMError::getSeverity | ( | ) | const [pure virtual] |
Get the severity of the error.
"Experimental - subject to change"
virtual const XMLCh* xercesc::DOMError::getMessage | ( | ) | const [pure virtual] |
Get the message describing the error that occured.
"Experimental - subject to change"
virtual DOMLocator* xercesc::DOMError::getLocation | ( | ) | const [pure virtual] |
Get the location of the error.
"Experimental - subject to change"
virtual void* xercesc::DOMError::getRelatedException | ( | ) | const [pure virtual] |
The related platform dependent exception if any.
"Experimental - subject to change"
virtual const XMLCh* xercesc::DOMError::getType | ( | ) | const [pure virtual] |
A XMLCh*
indicating which related data is expected in relatedData.
Users should refer to the specification of the error in order to find its XMLCh*
type and relatedData definitions if any.
Note: As an example, [DOM Level 3 Load and Save] does not keep the [baseURI] property defined on a Processing Instruction information item. Therefore, the DOMBuilder generates a SEVERITY_WARNING with type "infoset-baseURI" and the lost [baseURI] property represented as a DOMString in the relatedData attribute.
"Experimental - subject to change"
virtual void* xercesc::DOMError::getRelatedData | ( | ) | const [pure virtual] |
The related DOMError.type dependent data if any.
"Experimental - subject to change"
virtual void xercesc::DOMError::setSeverity | ( | const short | severity | ) | [pure virtual] |
Set the severity of the error.
"Experimental - subject to change"
severity | the type of the error to set |
virtual void xercesc::DOMError::setMessage | ( | const XMLCh *const | message | ) | [pure virtual] |
Set the error message.
"Experimental - subject to change"
message | the error message to set. |
virtual void xercesc::DOMError::setLocation | ( | DOMLocator *const | location | ) | [pure virtual] |
Set the location of the error.
"Experimental - subject to change"
location | the location of the error to set. |
virtual void xercesc::DOMError::setRelatedException | ( | void * | exc | ) | const [pure virtual] |
The related platform dependent exception if any.
"Experimental - subject to change"
exc | the related exception to set. |
virtual void xercesc::DOMError::setType | ( | const XMLCh * | type | ) | [pure virtual] |
A XMLCh*
indicating which related data is expected in relatedData.
Users should refer to the specification of the error in order to find its XMLCh*
type and relatedData definitions if any.
Note: As an example, [DOM Level 3 Load and Save] does not keep the [baseURI] property defined on a Processing Instruction information item. Therefore, the DOMBuilder generates a SEVERITY_WARNING with type "infoset-baseURI" and the lost [baseURI] property represented as a DOMString in the relatedData attribute.
"Experimental - subject to change"
virtual void xercesc::DOMError::setRelatedData | ( | void * | relatedData | ) | [pure virtual] |
The related DOMError.type dependent data if any.
"Experimental - subject to change"