net.dpml.lang
Class DecodingException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.io.IOException
              extended by net.dpml.lang.DecodingException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ApplianceException, ComponentException

public class DecodingException
extends IOException

Exception related to data decoding from a DOM element.

See Also:
Serialized Form

Constructor Summary
DecodingException(String message, Element element)
          Create a new decoding exception.
DecodingException(String message, Throwable cause, Element element)
          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 string 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(String message,
                         Element element)
Create a new decoding exception.

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

DecodingException

public DecodingException(String message,
                         Throwable cause,
                         Element element)
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.

Overrides:
getMessage in class Throwable
Returns:
the string value

list

public static String list(Element element)
Static utility operation that returns a string 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