com.bowstreet.xml
Class XMLException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.bowstreet.xml.XMLException
All Implemented Interfaces:
java.io.Serializable

public class XMLException
extends java.lang.RuntimeException

See Also:
Serialized Form

Constructor Summary
XMLException(java.lang.Exception e)
          Create a new XMLException wrapping an existing exception.
XMLException(java.lang.String message)
          Create a new XMLException.
XMLException(java.lang.String message, java.lang.Exception e)
          Create a new XMLException from an existing exception.
 
Method Summary
 java.lang.Exception getException()
          Return the embedded exception or null if there is none.
 java.lang.String getMessage()
          Return a detail message for this exception.
 java.lang.String toString()
          Override toString to pick up any embedded exception.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XMLException

public XMLException(java.lang.Exception e)
Create a new XMLException wrapping an existing exception. The existing exception will be embedded in the new one, and its message will become the default message for the XMLException.


XMLException

public XMLException(java.lang.String message)
Create a new XMLException.


XMLException

public XMLException(java.lang.String message,
                    java.lang.Exception e)
Create a new XMLException from an existing exception. The existing exception will be embedded in the new one, and its message will be concatenated with the message for the XMLException.

Method Detail

getException

public java.lang.Exception getException()
Return the embedded exception or null if there is none.


getMessage

public java.lang.String getMessage()
Return a detail message for this exception. If there is an embedded exception, concatenate the embedded exception's message to this exception's message.

Overrides:
getMessage in class java.lang.Throwable

toString

public java.lang.String toString()
Override toString to pick up any embedded exception.

Overrides:
toString in class java.lang.Throwable


Copyright © 2009 IBM. All Rights Reserved.