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.

  • Constructor Details

    • DOMErrorImpl

      public DOMErrorImpl​(short severity, String message, String type)
      Parameters:
      severity -
      message -
      type -
    • DOMErrorImpl

      public DOMErrorImpl​(short severity, String message, String type, Exception exception)
      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, either SEVERITY_WARNING, SEVERITY_ERROR, or SEVERITY_FATAL_ERROR.
      Specified by:
      getSeverity in interface DOMError
      Returns:
      A short containing the DOMError severity
    • getMessage

      public String getMessage()
      The DOMError message string.
      Specified by:
      getMessage in interface DOMError
      Returns:
      String
    • getLocation

      public DOMLocator getLocation()
      The location of the DOMError.
      Specified by:
      getLocation in interface DOMError
      Returns:
      A DOMLocator object containing the DOMError location.
    • getRelatedException

      public Object getRelatedException()
      The related platform dependent exception if any.
      Specified by:
      getRelatedException in interface DOMError
      Returns:
      A java.lang.Exception
    • getType

      public String getType()
      Returns a String indicating which related data is expected in relatedData.
      Specified by:
      getType in interface DOMError
      Returns:
      A String
    • getRelatedData

      public Object getRelatedData()
      The related DOMError.type dependent data if any.
      Specified by:
      getRelatedData in interface DOMError
      Returns:
      java.lang.Object
    • reset

      public void reset()