SEVERITY_ERROR, SEVERITY_FATAL_ERROR, SEVERITY_WARNING| Constructor and Description |
|---|
DOMErrorImpl(short severity,
String type) |
| Modifier and Type | Method and Description |
|---|---|
DOMLocator |
getLocation()
The location of the error.
|
String |
getMessage()
An implementation specific string describing the error that occurred.
|
Object |
getRelatedData()
The related
DOMError.type dependent data if any. |
Object |
getRelatedException()
The related platform dependent exception if any.
|
short |
getSeverity()
The severity of the error, either
SEVERITY_WARNING,
SEVERITY_ERROR, or SEVERITY_FATAL_ERROR. |
String |
getType()
A
DOMString indicating which related data is expected in
relatedData. |
public DOMErrorImpl(short severity,
String type)
public short getSeverity()
DOMErrorSEVERITY_WARNING,
SEVERITY_ERROR, or SEVERITY_FATAL_ERROR.getSeverity in interface DOMErrorpublic String getMessage()
DOMErrorgetMessage in interface DOMErrorpublic String getType()
DOMErrorDOMString indicating which related data is expected in
relatedData. Users should refer to the specification of
the error in order to find its DOMString type and
relatedData definitions if any.
Note: As an example,
Document.normalizeDocument() does generate warnings when
the "split-cdata-sections" parameter is in use. Therefore, the method
generates a SEVERITY_WARNING with type
"cdata-sections-splitted" and the first
CDATASection node in document order resulting from the
split is returned by the relatedData attribute.
public Object getRelatedException()
DOMErrorgetRelatedException in interface DOMErrorpublic Object getRelatedData()
DOMErrorDOMError.type dependent data if any.getRelatedData in interface DOMErrorpublic DOMLocator getLocation()
DOMErrorgetLocation in interface DOMError