Package org.apache.xerces.dom
Class DOMErrorImpl
java.lang.Object
org.apache.xerces.dom.DOMErrorImpl
- All Implemented Interfaces:
DOMError
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.
INTERNAL:
- Usage of this class is not supported. It may be altered or removed at any time.
- Version:
- $Id: DOMErrorImpl.java 699892 2008-09-28 21:08:27Z mrglavas $
- Author:
- Gopal Sharma, SUN Microsystems Inc., Elena Litani, IBM
-
Field Summary
FieldsModifier and TypeFieldDescriptionshort
Fields inherited from interface org.w3c.dom.DOMError
SEVERITY_ERROR, SEVERITY_FATAL_ERROR, SEVERITY_WARNING
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.DOMErrorImpl
(short severity, org.apache.xerces.xni.parser.XMLParseException exception) Exctracts information from XMLParserException) -
Method Summary
Modifier and TypeMethodDescriptionThe location of the error.An implementation specific string describing the error that occured.The related platform dependent exception if any.exception is a reserved word, we need to rename it.Change to "relatedException".short
The severity of the error, eitherSEVERITY_WARNING
,SEVERITY_ERROR
, orSEVERITY_FATAL_ERROR
.getType()
void
reset()
-
Field Details
-
fSeverity
public short fSeverity -
fMessage
-
fLocator
-
fException
-
fType
-
fRelatedData
-
-
Constructor Details
-
DOMErrorImpl
public DOMErrorImpl()Default constructor. -
DOMErrorImpl
public DOMErrorImpl(short severity, org.apache.xerces.xni.parser.XMLParseException exception) Exctracts information from XMLParserException)
-
-
Method Details
-
getSeverity
public short getSeverity()The severity of the error, eitherSEVERITY_WARNING
,SEVERITY_ERROR
, orSEVERITY_FATAL_ERROR
.- Specified by:
getSeverity
in interfaceDOMError
-
getMessage
An implementation specific string describing the error that occured.- Specified by:
getMessage
in interfaceDOMError
-
getLocation
The location of the error.- Specified by:
getLocation
in interfaceDOMError
-
getRelatedException
The related platform dependent exception if any.exception is a reserved word, we need to rename it.Change to "relatedException". (F2F 26 Sep 2001)- Specified by:
getRelatedException
in interfaceDOMError
-
reset
public void reset() -
getType
-
getRelatedData
- Specified by:
getRelatedData
in interfaceDOMError
-