|
Xerces-C++ 3.2.5
|
DOMError is an interface that describes an error. More...
#include <xercesc/dom/DOMError.hpp>
Public Types | |
Public constants | |
| enum | ErrorSeverity { DOM_SEVERITY_WARNING = 1 , DOM_SEVERITY_ERROR = 2 , DOM_SEVERITY_FATAL_ERROR = 3 } |
The severity of the error described by the DOMError. More... | |
Public Member Functions | |
Destructor | |
| virtual | ~DOMError () |
| Destructor. | |
Functions introduced in DOM Level 3 | |
| virtual ErrorSeverity | 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::getType dependent data if any. | |
Protected Member Functions | |
Hidden constructors | |
| DOMError () | |
DOMError is an interface that describes an error.
The severity of the error described by the DOMError.
DOM_SEVERITY_ERROR: The severity of the error described by the DOMError is error. A DOM_SEVERITY_ERROR may not cause the processing to stop if the error can be recovered, unless DOMErrorHandler::handleError() returns false.
DOM_SEVERITY_FATAL_ERROR The severity of the error described by the DOMError is fatal error. A DOM_SEVERITY_FATAL_ERROR will cause the normal processing to stop. The return value of DOMErrorHandler::handleError() is ignored unless the implementation chooses to continue, in which case the behavior becomes undefined.
DOM_SEVERITY_WARNING The severity of the error described by the DOMError is warning. A DOM_SEVERITY_WARNING will not cause the processing to stop, unless DOMErrorHandler::handleError() returns false.
| Enumerator | |
|---|---|
| DOM_SEVERITY_WARNING | |
| DOM_SEVERITY_ERROR | |
| DOM_SEVERITY_FATAL_ERROR | |
|
protected |
|
virtual |
Destructor.
|
pure virtual |
Get the location of the error.
|
pure virtual |
Get the message describing the error that occured.
|
pure virtual |
The related DOMError::getType dependent data if any.
|
pure virtual |
The related platform dependent exception if any.
|
pure virtual |
Get the severity of the error.
|
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, DOMDocument::normalizeDocument() does generate warnings when the "split-cdata-sections" parameter is in use. Therefore, the method generates a DOM_SEVERITY_WARNING with type "cdata-sections-splitted" and the first DOMCDATASection node in document order resulting from the split is returned by the relatedData attribute.