|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
org.exolab.castor.builder.binding.BindingException
public class BindingException
The base exception for the binding package. This exception is nested in order to keep a correct stack trace while nesting the exception that causes the call to BindingException
Constructor Summary | |
---|---|
BindingException(java.lang.Exception exception)
Create a new BindingException wrapping an existing exception. |
|
BindingException(java.lang.String message)
Create a new BindingException |
|
BindingException(java.lang.String message,
java.lang.Exception exception)
Create a new BindingException from an existing exception. |
Method Summary | |
---|---|
java.lang.Exception |
getException()
Return the embedded exception, if any. |
java.lang.String |
getMessage()
Return a detail message for this exception. |
void |
printStackTrace()
Override printStackTrace to keep the stack trace of the embedded 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, setStackTrace |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public BindingException(java.lang.String message)
message
- The error or warning message.public BindingException(java.lang.Exception exception)
The existing exception will be embedded in the new one, and its message will become the default message for the BindingException.
exception
- The exception to be wrapped in a BindingException.public BindingException(java.lang.String message, java.lang.Exception exception)
The existing exception will be embedded in the new one, but the new exception will have its own message.
message
- The detail message.exception
- The exception to be wrapped in a BindingException.Method Detail |
---|
public java.lang.String getMessage()
If there is an embedded exception, and if the BindingException has no detail message of its own, this method will return the detail message from the embedded exception.
getMessage
in class java.lang.Throwable
public java.lang.Exception getException()
public void printStackTrace()
printStackTrace
in class java.lang.Throwable
public java.lang.String toString()
toString
in class java.lang.Throwable
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |