org.apache.xml.serializer.dom3
Class DOMErrorImpl

java.lang.Object
  extended by org.apache.xml.serializer.dom3.DOMErrorImpl
All Implemented Interfaces:
org.w3c.dom.DOMError

final class DOMErrorImpl
extends java.lang.Object
implements org.w3c.dom.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
private  java.lang.Exception fException
           
private  DOMLocatorImpl fLocation
           
private  java.lang.String fMessage
           
private  java.lang.Object fRelatedData
           
private  short fSeverity
          private data members
private  java.lang.String fType
           
 
Fields inherited from interface org.w3c.dom.DOMError
SEVERITY_ERROR, SEVERITY_FATAL_ERROR, SEVERITY_WARNING
 
Constructor Summary
DOMErrorImpl()
          Default constructor.
DOMErrorImpl(short severity, java.lang.String message, java.lang.String type)
           
DOMErrorImpl(short severity, java.lang.String message, java.lang.String type, java.lang.Exception exception)
           
DOMErrorImpl(short severity, java.lang.String message, java.lang.String type, java.lang.Exception exception, java.lang.Object relatedData, DOMLocatorImpl location)
           
 
Method Summary
 org.w3c.dom.DOMLocator getLocation()
          The location of the DOMError.
 java.lang.String getMessage()
          The DOMError message string.
 java.lang.Object getRelatedData()
          The related DOMError.type dependent data if any.
 java.lang.Object getRelatedException()
          The related platform dependent exception if any.
 short getSeverity()
          The severity of the error, either SEVERITY_WARNING, SEVERITY_ERROR, or SEVERITY_FATAL_ERROR.
 java.lang.String getType()
          Returns a String indicating which related data is expected in relatedData.
 void reset()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fSeverity

private short fSeverity
private data members


fMessage

private java.lang.String fMessage

fType

private java.lang.String fType

fException

private java.lang.Exception fException

fRelatedData

private java.lang.Object fRelatedData

fLocation

private DOMLocatorImpl fLocation
Constructor Detail

DOMErrorImpl

DOMErrorImpl()
Default constructor.


DOMErrorImpl

DOMErrorImpl(short severity,
             java.lang.String message,
             java.lang.String type)
Parameters:
severity -
message -
type -

DOMErrorImpl

DOMErrorImpl(short severity,
             java.lang.String message,
             java.lang.String type,
             java.lang.Exception exception)
Parameters:
severity -
message -
type -
exception -

DOMErrorImpl

DOMErrorImpl(short severity,
             java.lang.String message,
             java.lang.String type,
             java.lang.Exception exception,
             java.lang.Object relatedData,
             DOMLocatorImpl location)
Parameters:
severity -
message -
type -
exception -
relatedData -
location -
Method Detail

getSeverity

public short getSeverity()
The severity of the error, either SEVERITY_WARNING, SEVERITY_ERROR, or SEVERITY_FATAL_ERROR.

Specified by:
getSeverity in interface org.w3c.dom.DOMError
Returns:
A short containing the DOMError severity

getMessage

public java.lang.String getMessage()
The DOMError message string.

Specified by:
getMessage in interface org.w3c.dom.DOMError
Returns:
String

getLocation

public org.w3c.dom.DOMLocator getLocation()
The location of the DOMError.

Specified by:
getLocation in interface org.w3c.dom.DOMError
Returns:
A DOMLocator object containing the DOMError location.

getRelatedException

public java.lang.Object getRelatedException()
The related platform dependent exception if any.

Specified by:
getRelatedException in interface org.w3c.dom.DOMError
Returns:
A java.lang.Exception

getType

public java.lang.String getType()
Returns a String indicating which related data is expected in relatedData.

Specified by:
getType in interface org.w3c.dom.DOMError
Returns:
A String

getRelatedData

public java.lang.Object getRelatedData()
The related DOMError.type dependent data if any.

Specified by:
getRelatedData in interface org.w3c.dom.DOMError
Returns:
java.lang.Object

reset

public void reset()