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.
SEVERITY_ERROR, SEVERITY_FATAL_ERROR, SEVERITY_WARNING| Constructor and Description |
|---|
DOMErrorImpl()
Default constructor.
|
DOMErrorImpl(short severity,
XMLParseException exception)
Extracts information from XMLParserException
|
| Modifier and Type | Method and 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, either
SEVERITY_WARNING,
SEVERITY_ERROR, or SEVERITY_FATAL_ERROR. |
String |
getType() |
void |
reset() |
public DOMErrorImpl()
public DOMErrorImpl(short severity,
XMLParseException exception)
severity - the severityexception - the exceptionpublic short getSeverity()
SEVERITY_WARNING,
SEVERITY_ERROR, or SEVERITY_FATAL_ERROR.getSeverity in interface DOMErrorpublic String getMessage()
getMessage in interface DOMErrorpublic DOMLocator getLocation()
getLocation in interface DOMErrorpublic Object getRelatedException()
getRelatedException in interface DOMErrorpublic void reset()
public Object getRelatedData()
getRelatedData in interface DOMErrorCopyright © 2023 HtmlUnit. All rights reserved.