FileDocCategorySizeDatePackage
DOMErrorImpl.javaAPI DocJava SE 6 API3774Tue Jun 10 00:22:36 BST 2008com.sun.org.apache.xerces.internal.dom

DOMErrorImpl

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.

xerces.internal
author
Gopal Sharma, SUN Microsystems Inc.
author
Elena Litani, IBM
version
$Id: DOMErrorImpl.java,v 1.2.6.1 2005/08/30 13:09:59 sunithareddy Exp $

Fields Summary
public short
fSeverity
public String
fMessage
public DOMLocatorImpl
fLocator
public Exception
fException
public String
fType
public Object
fRelatedData
Constructors Summary
public DOMErrorImpl()
Default constructor.

   


    //
    // Constructors
    //

           
       
    
public DOMErrorImpl(short severity, XMLParseException exception)
Exctracts information from XMLParserException)

        fSeverity = severity;
        fException = exception;
        fLocator = createDOMLocator (exception);
    
Methods Summary
private com.sun.org.apache.xerces.internal.dom.DOMLocatorImplcreateDOMLocator(com.sun.org.apache.xerces.internal.xni.parser.XMLParseException exception)

        // assuming DOMLocator wants the *expanded*, not the literal, URI of the doc... - neilg
        return new DOMLocatorImpl(exception.getLineNumber(),
                                  exception.getColumnNumber(),
                                  exception.getCharacterOffset(),
                                  exception.getExpandedSystemId());
    
public org.w3c.dom.DOMLocatorgetLocation()
The location of the error.

        return fLocator;
    
public java.lang.StringgetMessage()
An implementation specific string describing the error that occured.

        return fMessage;
    
public java.lang.ObjectgetRelatedData()

        return fRelatedData;
    
public java.lang.ObjectgetRelatedException()
The related platform dependent exception if any.exception is a reserved word, we need to rename it.Change to "relatedException". (F2F 26 Sep 2001)

        return fException;
    
public shortgetSeverity()
The severity of the error, either SEVERITY_WARNING, SEVERITY_ERROR, or SEVERITY_FATAL_ERROR.

        return fSeverity;
    
public java.lang.StringgetType()

        return fType;
    
public voidreset()

        fSeverity = DOMError.SEVERITY_WARNING; 
        fException = null;