APIdia Launch Partner
Top Description Fields Constructors Methods
com.sun.org.apache.xerces.internal.dom

public Class DOMErrorImpl

extends Object
implements DOMError
Class Inheritance
All Implemented Interfaces
org.w3c.dom.DOMError
Imports
org.w3c.dom.DOMError, .DOMLocator, com.sun.org.apache.xerces.internal.xni.parser.XMLParseException

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.

Authors
Gopal Sharma, SUN Microsystems Inc., Elena Litani, IBM

Field Summary

Modifier and TypeField and Description
public Exception
public DOMLocatorImpl
public String
public Object
public short
public String

Constructor Summary

AccessConstructor and Description
public
DOMErrorImpl()

Default constructor.

public
DOMErrorImpl(short severity, XMLParseException exception)

Exctracts information from XMLParserException)

Method Summary

Modifier and TypeMethod and Description
private DOMLocatorImpl
public DOMLocator
getLocation()

Implements org.w3c.dom.DOMError.getLocation.

The location of the error.

public String
getMessage()

Implements org.w3c.dom.DOMError.getMessage.

An implementation specific string describing the error that occured.

public Object
getRelatedData()

Implements org.w3c.dom.DOMError.getRelatedData.

The related DOMError.type dependent data if any.

public Object
getRelatedException()

Implements org.w3c.dom.DOMError.getRelatedException.

The related platform dependent exception if any.exception is a reserved word, we need to rename it.Change to "relatedException".

public short
getSeverity()

Implements org.w3c.dom.DOMError.getSeverity.

The severity of the error, either SEVERITY_WARNING, SEVERITY_ERROR, or SEVERITY_FATAL_ERROR.

public String
getType()

Implements org.w3c.dom.DOMError.getType.

A DOMString indicating which related data is expected in relatedData.

public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

fExceptionback to summary
public Exception fException
fLocatorback to summary
public DOMLocatorImpl fLocator
fMessageback to summary
public String fMessage
fRelatedDataback to summary
public Object fRelatedData
fSeverityback to summary
public short fSeverity
fTypeback to summary
public String fType

Constructor Detail

DOMErrorImplback to summary
public DOMErrorImpl()

Default constructor.

DOMErrorImplback to summary
public DOMErrorImpl(short severity, XMLParseException exception)

Exctracts information from XMLParserException)

Method Detail

createDOMLocatorback to summary
private DOMLocatorImpl createDOMLocator(XMLParseException exception)
getLocationback to summary
public DOMLocator getLocation()

Implements org.w3c.dom.DOMError.getLocation.

The location of the error.

getMessageback to summary
public String getMessage()

Implements org.w3c.dom.DOMError.getMessage.

An implementation specific string describing the error that occured.

getRelatedDataback to summary
public Object getRelatedData()

Implements org.w3c.dom.DOMError.getRelatedData.

Doc from org.w3c.dom.DOMError.getRelatedData.

The related DOMError.type dependent data if any.

getRelatedExceptionback to summary
public Object getRelatedException()

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

getSeverityback to summary
public short getSeverity()

Implements org.w3c.dom.DOMError.getSeverity.

The severity of the error, either SEVERITY_WARNING, SEVERITY_ERROR, or SEVERITY_FATAL_ERROR.

getTypeback to summary
public String getType()

Implements org.w3c.dom.DOMError.getType.

Doc from org.w3c.dom.DOMError.getType.

A DOMString indicating which related data is expected in relatedData. Users should refer to the specification of the error in order to find its DOMString type and relatedData definitions if any.

Note

As an example, Document.normalizeDocument() does generate warnings when the "split-cdata-sections" parameter is in use. Therefore, the method generates a SEVERITY_WARNING with type "cdata-sections-splitted" and the first CDATASection node in document order resulting from the split is returned by the relatedData attribute.

resetback to summary
public void reset()