DOMErrorImplpublic class DOMErrorImpl extends Object implements DOMErrorDOMErrorImpl 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. |
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.DOMLocatorImpl | createDOMLocator(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.getExpandedSystemId()
);
| public org.w3c.dom.DOMLocator | getLocation()The location of the error.
return fLocator;
| public java.lang.String | getMessage()An implementation specific string describing the error that occured.
return fMessage;
| public java.lang.Object | getRelatedData()
return fRelatedData;
| public java.lang.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)
return fException;
| public short | getSeverity()The severity of the error, either SEVERITY_WARNING ,
SEVERITY_ERROR , or SEVERITY_FATAL_ERROR .
return fSeverity;
| public java.lang.String | getType()
return fType;
| public void | reset()
fSeverity = DOMError.SEVERITY_WARNING;
fException = null;
|
|