Package org.apache.xml.serializer.dom3
Class DOMErrorImpl
java.lang.Object
org.apache.xml.serializer.dom3.DOMErrorImpl
- All Implemented Interfaces:
DOMError
public final class DOMErrorImpl extends Object implements DOMError
Implementation of the DOM Level 3 DOMError interface.
See also the DOMError Interface definition from Document Object Model (DOM) Level 3 Core Specification.
-
Field Summary
Fields inherited from interface org.w3c.dom.DOMError
SEVERITY_ERROR, SEVERITY_FATAL_ERROR, SEVERITY_WARNING -
Constructor Summary
Constructors Constructor Description DOMErrorImpl(short severity, String message, String type)DOMErrorImpl(short severity, String message, String type, Exception exception)DOMErrorImpl(short severity, String message, String type, Exception exception, Object relatedData, org.apache.xml.serializer.dom3.DOMLocatorImpl location) -
Method Summary
Modifier and Type Method Description DOMLocatorgetLocation()The location of the DOMError.StringgetMessage()The DOMError message string.ObjectgetRelatedData()The related DOMError.type dependent data if any.ObjectgetRelatedException()The related platform dependent exception if any.shortgetSeverity()The severity of the error, eitherSEVERITY_WARNING,SEVERITY_ERROR, orSEVERITY_FATAL_ERROR.StringgetType()Returns a String indicating which related data is expected in relatedData.voidreset()
-
Constructor Details
-
DOMErrorImpl
- Parameters:
severity-message-type-
-
DOMErrorImpl
- Parameters:
severity-message-type-exception-
-
DOMErrorImpl
public DOMErrorImpl(short severity, String message, String type, Exception exception, Object relatedData, org.apache.xml.serializer.dom3.DOMLocatorImpl location)- Parameters:
severity-message-type-exception-relatedData-location-
-
-
Method Details
-
getSeverity
public short getSeverity()The severity of the error, eitherSEVERITY_WARNING,SEVERITY_ERROR, orSEVERITY_FATAL_ERROR.- Specified by:
getSeverityin interfaceDOMError- Returns:
- A short containing the DOMError severity
-
getMessage
The DOMError message string.- Specified by:
getMessagein interfaceDOMError- Returns:
- String
-
getLocation
The location of the DOMError.- Specified by:
getLocationin interfaceDOMError- Returns:
- A DOMLocator object containing the DOMError location.
-
getRelatedException
The related platform dependent exception if any.- Specified by:
getRelatedExceptionin interfaceDOMError- Returns:
- A java.lang.Exception
-
getType
Returns a String indicating which related data is expected in relatedData. -
getRelatedData
The related DOMError.type dependent data if any.- Specified by:
getRelatedDatain interfaceDOMError- Returns:
- java.lang.Object
-
reset
public void reset()
-