gnu.xml.dom

Class 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.

Version: $Date: 2001/11/20 04:57:05 $

Author: David Brownell

Constructor Summary
DomEx(short code)
Constructs an exception, with the diagnostic message corresponding to the specified code.
DomEx(short code, 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
StringgetData()
Returns data to which the diagnotic applies, or null.
StringgetMessage()
Returns a diagnostic message that may be slightly more useful than the generic one, where possible.
NodegetNode()
Returns the node to which the diagnotic applies, or null.
intgetValue()
Returns data to which the diagnotic applies, or null.

Constructor Detail

DomEx

public DomEx(short code)
Constructs an exception, with the diagnostic message corresponding to the specified code.

DomEx

public DomEx(short code, String data, Node node, int value)
Constructs an exception, with the diagnostic message corresponding to the specified code and additional information as provided.

Method Detail

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.

Source code is under GPL (with library exception) in the JAXP project at http://www.gnu.org/software/classpathx/jaxp
This documentation was derived from that source code on 2013-01-12.