|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.io.IOException
org.exolab.castor.util.NestedIOException
An exception that is used to signal I/O errors which are caused by other exceptions. This class allows the user get to the original exception.
| Constructor Summary | |
NestedIOException()
Creates a new NestedIOException with no message, or nested Exception |
|
NestedIOException(java.lang.Exception exception)
Creates a new NestedIOException with the given nested exception. |
|
NestedIOException(java.lang.String message)
Creates a new NestedIOException with the given message. |
|
NestedIOException(java.lang.String message,
java.lang.Exception exception)
Creates a new NestedIOException with the given message and nested exception. |
|
| Method Summary | |
java.lang.Exception |
getException()
Returns the exception, which in turn caused this Exception to be thrown, or null if nested exception exists. |
void |
printStackTrace()
|
void |
printStackTrace(java.io.PrintStream printer)
|
void |
printStackTrace(java.io.PrintWriter printer)
|
void |
setLocalStackTraceOnly(boolean localTrace)
Sets whether or not to print the local stack trace or the nested stack trace when calls to #printStackTrace are made. |
java.lang.String |
toString()
Returns the String representation of this Exception. |
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public NestedIOException()
public NestedIOException(java.lang.String message)
message - the message for this Exceptionpublic NestedIOException(java.lang.Exception exception)
exception - the nested exception. (Must not be null).
public NestedIOException(java.lang.String message,
java.lang.Exception exception)
message - the detail message for this exceptionexception - the nested exception| Method Detail |
public java.lang.Exception getException()
public void setLocalStackTraceOnly(boolean localTrace)
localTrace - a boolean when true enables local stack trace only.public java.lang.String toString()
public void printStackTrace()
public void printStackTrace(java.io.PrintWriter printer)
public void printStackTrace(java.io.PrintStream printer)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||