net.dpml.util
Class DecodingException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.io.IOException
              extended bynet.dpml.util.DecodingException
All Implemented Interfaces:
Serializable

public class DecodingException
extends IOException

Exception related to data decoding from a DOM element.

See Also:
Serialized Form

Constructor Summary
DecodingException(Element element, String message)
          Create a new decoding exception.
DecodingException(Element element, String message, Throwable cause)
          Create a new decoding exception.
 
Method Summary
 Element getElement()
          Get the element that is the subject of this exception.
 String getMessage()
          Return a string representation of the exception.
static String list(Element element)
          Static utility operation that returns a syring representation of a DOM element.
static String list(Element element, String pad)
          Static utility operation that returns a syring representation of a DOM element.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DecodingException

public DecodingException(Element element,
                         String message)
Create a new decoding exception.

Parameters:
element - the element representing the source of the error
message - the exception message

DecodingException

public DecodingException(Element element,
                         String message,
                         Throwable cause)
Create a new decoding exception.

Parameters:
element - the element representing the source of the error
message - the exception message
cause - the causal exception
Method Detail

getElement

public Element getElement()
Get the element that is the subject of this exception.

Returns:
the subject element

getMessage

public String getMessage()
Return a string representation of the exception.

Returns:
the string value

list

public static String list(Element element)
Static utility operation that returns a syring representation of a DOM element.

Parameters:
element - the element to stringify
Returns:
the string value

list

public static String list(Element element,
                          String pad)
Static utility operation that returns a syring representation of a DOM element.

Parameters:
element - the element to stringify
pad - padding offset
Returns:
the string value