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()
DOMError
SEVERITY_WARNING
,
SEVERITY_ERROR
, or SEVERITY_FATAL_ERROR
.getSeverity
in interface DOMError
public String getMessage()
DOMError
getMessage
in interface DOMError
public String getType()
DOMError
DOMString
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()
DOMError
getRelatedException
in interface DOMError
public Object getRelatedData()
DOMError
DOMError.type
dependent data if any.getRelatedData
in interface DOMError
public DOMLocator getLocation()
DOMError
getLocation
in interface DOMError