DOMError is an interface that describes an error.  
 More...
DOMError is an interface that describes an error. 
- See also
- DOMErrorHandler::handleError 
- Since
- DOM Level 3 
◆ ErrorSeverity
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.
- Since
- DOM Level 3 
| Enumerator | 
|---|
| DOM_SEVERITY_WARNING |  | 
| DOM_SEVERITY_ERROR |  | 
| DOM_SEVERITY_FATAL_ERROR |  | 
 
 
◆ DOMError()
◆ ~DOMError()
  
  | 
        
          | virtual DOMError::~DOMError | ( |  | ) |  |  | virtual | 
 
 
◆ getLocation()
  
  | 
        
          | virtual DOMLocator* DOMError::getLocation | ( |  | ) | const |  | pure virtual | 
 
Get the location of the error. 
- Since
- DOM Level 3 
 
 
◆ getMessage()
  
  | 
        
          | virtual const XMLCh* DOMError::getMessage | ( |  | ) | const |  | pure virtual | 
 
Get the message describing the error that occured. 
- Since
- DOM Level 3 
 
 
◆ getRelatedData()
  
  | 
        
          | virtual void* DOMError::getRelatedData | ( |  | ) | const |  | pure virtual | 
 
 
◆ getRelatedException()
  
  | 
        
          | virtual void* DOMError::getRelatedException | ( |  | ) | const |  | pure virtual | 
 
The related platform dependent exception if any. 
- Since
- DOM Level 3 
 
 
◆ getSeverity()
Get the severity of the error. 
- See also
- setSeverity 
- Since
- DOM Level 3 
 
 
◆ getType()
  
  | 
        
          | virtual const XMLCh* 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, 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.
- Since
- DOM Level 3 
 
 
The documentation for this class was generated from the following file: