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

Class DomEx

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:
David Brownell

Constructor Summary

DomEx(short code)

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

DomEx(short code, java.lang.String data, 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.String

getData()

Returns data to which the diagnotic applies, or null.

java.lang.String

getMessage()

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

Node

getNode()

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

int

getValue()

Returns data to which the diagnotic applies, or null.

Constructor Details

DomEx

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

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

Parameters:
code
data
node
value

DomEx

public DomEx(short code)

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

Parameters:
code

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.