Package org.apache.harmony.xml.dom
Class DOMErrorImpl
- java.lang.Object
-
- org.apache.harmony.xml.dom.DOMErrorImpl
-
-
Field Summary
-
Fields inherited from interface org.w3c.dom.DOMError
SEVERITY_ERROR, SEVERITY_FATAL_ERROR, SEVERITY_WARNING
-
-
Constructor Summary
Constructors Constructor Description DOMErrorImpl(short severity, String type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DOMLocatorgetLocation()The location of the error.StringgetMessage()An implementation specific string describing the error that occurred.ObjectgetRelatedData()The relatedDOMError.typedependent data if any.ObjectgetRelatedException()The related platform dependent exception if any.shortgetSeverity()The severity of the error, eitherSEVERITY_WARNING,SEVERITY_ERROR, orSEVERITY_FATAL_ERROR.StringgetType()ADOMStringindicating which related data is expected inrelatedData.
-
-
-
Constructor Detail
-
DOMErrorImpl
public DOMErrorImpl(short severity, String type)
-
-
Method Detail
-
getSeverity
public short getSeverity()
Description copied from interface:DOMErrorThe severity of the error, eitherSEVERITY_WARNING,SEVERITY_ERROR, orSEVERITY_FATAL_ERROR.- Specified by:
getSeverityin interfaceDOMError
-
getMessage
public String getMessage()
Description copied from interface:DOMErrorAn implementation specific string describing the error that occurred.- Specified by:
getMessagein interfaceDOMError
-
getType
public String getType()
Description copied from interface:DOMErrorADOMStringindicating which related data is expected inrelatedData. Users should refer to the specification of the error in order to find itsDOMStringtype andrelatedDatadefinitions if any.Note: As an example,
Document.normalizeDocument()does generate warnings when the "split-cdata-sections" parameter is in use. Therefore, the method generates aSEVERITY_WARNINGwithtype"cdata-sections-splitted"and the firstCDATASectionnode in document order resulting from the split is returned by therelatedDataattribute.
-
getRelatedException
public Object getRelatedException()
Description copied from interface:DOMErrorThe related platform dependent exception if any.- Specified by:
getRelatedExceptionin interfaceDOMError
-
getRelatedData
public Object getRelatedData()
Description copied from interface:DOMErrorThe relatedDOMError.typedependent data if any.- Specified by:
getRelatedDatain interfaceDOMError
-
getLocation
public DOMLocator getLocation()
Description copied from interface:DOMErrorThe location of the error.- Specified by:
getLocationin interfaceDOMError
-
-