org.apache.xerces.dom

Class DOMErrorImpl

Implemented Interfaces:
org.w3c.dom.DOMError

public class DOMErrorImpl
extends java.lang.Object
implements org.w3c.dom.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: DOMErrorImpl.java 320295 2005-05-02 22:02:22Z mrglavas $
Authors:
Gopal Sharma, SUN Microsystems Inc.
Elena Litani, IBM

Field Summary

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

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.
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, either SEVERITY_WARNING, SEVERITY_ERROR, or SEVERITY_FATAL_ERROR.
String
getType()
void
reset()

Field Details

fException

public Exception fException

fLocator

public DOMLocatorImpl fLocator

fMessage

public String fMessage

fRelatedData

public Object fRelatedData

fSeverity

public short fSeverity

fType

public String fType

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

getLocation

public org.w3c.dom.DOMLocator getLocation()
The location of the error.
Specified by:
getLocation in interface org.w3c.dom.DOMError

getMessage

public String getMessage()
An implementation specific string describing the error that occured.
Specified by:
getMessage in interface org.w3c.dom.DOMError

getRelatedData

public Object getRelatedData()
Specified by:
getRelatedData in interface org.w3c.dom.DOMError

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 interface org.w3c.dom.DOMError

getSeverity

public short getSeverity()
The severity of the error, either SEVERITY_WARNING, SEVERITY_ERROR, or SEVERITY_FATAL_ERROR.
Specified by:
getSeverity in interface org.w3c.dom.DOMError

getType

public String getType()
Specified by:
getType in interface org.w3c.dom.DOMError

reset

public void reset()

Copyright B) 1999-2006 The Apache Software Foundation. All Rights Reserved.