Class DOMErrorImpl
- java.lang.Object
-
- org.smooks.engine.delivery.sax.ng.org.apache.xerces.dom.DOMErrorImpl
-
- All Implemented Interfaces:
DOMError
public class DOMErrorImpl extends Object implements 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.
- Version:
- $Id$
- Author:
- Gopal Sharma, SUN Microsystems Inc., Elena Litani, IBM
-
-
Field Summary
Fields Modifier and Type Field Description Exception
fException
DOMLocatorImpl
fLocator
String
fMessage
Object
fRelatedData
short
fSeverity
String
fType
-
Fields inherited from interface org.w3c.dom.DOMError
SEVERITY_ERROR, SEVERITY_FATAL_ERROR, SEVERITY_WARNING
-
-
Constructor Summary
Constructors Constructor Description DOMErrorImpl()
Default constructor.DOMErrorImpl(short severity, XMLParseException exception)
Exctracts information from XMLParserException)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DOMLocator
getLocation()
The location of the error.String
getMessage()
An implementation specific string describing the error that occured.Object
getRelatedData()
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, eitherSEVERITY_WARNING
,SEVERITY_ERROR
, orSEVERITY_FATAL_ERROR
.String
getType()
void
reset()
-
-
-
Field Detail
-
fSeverity
public short fSeverity
-
fMessage
public String fMessage
-
fLocator
public DOMLocatorImpl fLocator
-
fException
public Exception fException
-
fType
public String fType
-
fRelatedData
public Object fRelatedData
-
-
Constructor Detail
-
DOMErrorImpl
public DOMErrorImpl()
Default constructor.
-
DOMErrorImpl
public DOMErrorImpl(short severity, XMLParseException exception)
Exctracts information from XMLParserException)
-
-
Method Detail
-
getSeverity
public short getSeverity()
The severity of the error, eitherSEVERITY_WARNING
,SEVERITY_ERROR
, orSEVERITY_FATAL_ERROR
.- Specified by:
getSeverity
in interfaceDOMError
-
getMessage
public String getMessage()
An implementation specific string describing the error that occured.- Specified by:
getMessage
in interfaceDOMError
-
getLocation
public DOMLocator getLocation()
The location of the error.- Specified by:
getLocation
in interfaceDOMError
-
getRelatedException
public Object 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()
-
getRelatedData
public Object getRelatedData()
- Specified by:
getRelatedData
in interfaceDOMError
-
-