Index (Frames) | Index (No Frames) | Package | Package Tree | Tree
gnu.xml.dom

Class DomEx

java.lang.Object
|
+--java.lang.Throwable
   |
   +--java.lang.Exception
      |
      +--java.lang.RuntimeException
         |
         +--org.w3c.dom.DOMException
            |
            +--gnu.xml.dom.DomEx


public class DomEx

extends DOMException

DOMException implementation. The version that is provided by the W3C is abstract, so it can't be instantiated.

This also provides a bit more information about the error that is being reported, in terms of the relevant DOM structures and data.

Author:

Constructor Summary

DomEx(short code)

Constructs an exception, with the diagnostic message corresponding to the specified code.
DomEx(short code, java.lang.String data, org.w3c.dom.Node node, int value)

Constructs an exception, with the diagnostic message corresponding to the specified code and additional information as provided.

Method Summary

java.lang.StringgetData()

Returns data to which the diagnotic applies, or null.
java.lang.StringgetMessage()

Returns a diagnostic message that may be slightly more useful than the generic one, where possible.
org.w3c.dom.NodegetNode()

Returns the node to which the diagnotic applies, or null.
intgetValue()

Returns data to which the diagnotic applies, or null.

Constructor Details

DomEx

public DomEx(short code)

Constructs an exception, with the diagnostic message corresponding to the specified code.

Parameters:


DomEx

public DomEx(short code, java.lang.String data, org.w3c.dom.Node node, int value)

Constructs an exception, with the diagnostic message corresponding to the specified code and additional information as provided.

Parameters:


Method Details

getData

public final String getData()

Returns data to which the diagnotic applies, or null.


getMessage

public String getMessage()

Returns a diagnostic message that may be slightly more useful than the generic one, where possible.


getNode

public final Node getNode()

Returns the node to which the diagnotic applies, or null.


getValue

public final int getValue()

Returns data to which the diagnotic applies, or null.