|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.xerces.dom.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 |
Fields inherited from interface org.w3c.dom.DOMError |
SEVERITY_ERROR, SEVERITY_FATAL_ERROR, SEVERITY_WARNING |
Constructor Summary | |
DOMErrorImpl()
Default constructor. |
|
DOMErrorImpl(short severity,
org.apache.xerces.xni.parser.XMLParseException exception)
Exctracts information from XMLParserException) |
Method Summary | |
org.w3c.dom.DOMLocator |
getLocation()
The location of the error. |
java.lang.String |
getMessage()
An implementation specific string describing the error that occured. |
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 . |
void |
reset()
|
void |
setException(java.lang.Exception ex)
|
void |
setLocator(org.w3c.dom.DOMLocator locator)
|
void |
setMessage(java.lang.String msg)
|
void |
setSeverity(short error)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DOMErrorImpl()
public DOMErrorImpl(short severity, org.apache.xerces.xni.parser.XMLParseException exception)
Method Detail |
public short getSeverity()
SEVERITY_WARNING
,
SEVERITY_ERROR
, or SEVERITY_FATAL_ERROR
.
getSeverity
in interface org.w3c.dom.DOMError
public java.lang.String getMessage()
getMessage
in interface org.w3c.dom.DOMError
public org.w3c.dom.DOMLocator getLocation()
getLocation
in interface org.w3c.dom.DOMError
public void setSeverity(short error)
public void setMessage(java.lang.String msg)
public void setLocator(org.w3c.dom.DOMLocator locator)
public void setException(java.lang.Exception ex)
public java.lang.Object getRelatedException()
getRelatedException
in interface org.w3c.dom.DOMError
public void reset()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |