|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.xerces.dom.DOMErrorImpl
public class DOMErrorImpl
DOMErrorImpl
is an implementation that describes an error.
Note: The error object that describes the error
might be reused by Xerces implementation, across multiple calls to the
handleEvent method on DOMErrorHandler interface.
See also the Document Object Model (DOM) Level 3 Core Specification.
Field Summary | |
---|---|
java.lang.Exception |
fException
|
DOMLocatorImpl |
fLocator
|
java.lang.String |
fMessage
|
java.lang.Object |
fRelatedData
|
short |
fSeverity
|
java.lang.String |
fType
|
Fields inherited from interface org.w3c.dom.DOMError |
---|
SEVERITY_ERROR, SEVERITY_FATAL_ERROR, SEVERITY_WARNING |
Constructor Summary | |
---|---|
DOMErrorImpl()
Default constructor. |
|
DOMErrorImpl(short severity,
XMLParseException exception)
Exctracts information from XMLParserException) |
Method Summary | |
---|---|
DOMLocator |
getLocation()
The location of the error. |
java.lang.String |
getMessage()
An implementation specific string describing the error that occured. |
java.lang.Object |
getRelatedData()
The related DOMError.type dependent data if any. |
java.lang.Object |
getRelatedException()
The related platform dependent exception if any.exception is a reserved word, we need to rename it.Change to "relatedException". |
short |
getSeverity()
The severity of the error, either SEVERITY_WARNING ,
SEVERITY_ERROR , or SEVERITY_FATAL_ERROR . |
java.lang.String |
getType()
A DOMString indicating which related data is expected in
relatedData . |
void |
reset()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public short fSeverity
public java.lang.String fMessage
public DOMLocatorImpl fLocator
public java.lang.Exception fException
public java.lang.String fType
public java.lang.Object fRelatedData
Constructor Detail |
---|
public DOMErrorImpl()
public DOMErrorImpl(short severity, XMLParseException exception)
Method Detail |
---|
public short getSeverity()
SEVERITY_WARNING
,
SEVERITY_ERROR
, or SEVERITY_FATAL_ERROR
.
getSeverity
in interface DOMError
public java.lang.String getMessage()
getMessage
in interface DOMError
public DOMLocator getLocation()
getLocation
in interface DOMError
public java.lang.Object getRelatedException()
getRelatedException
in interface DOMError
public void reset()
public java.lang.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.
getType
in interface DOMError
public java.lang.Object getRelatedData()
DOMError
DOMError.type
dependent data if any.
getRelatedData
in interface DOMError
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |