|
||||||||
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.adaptx.util.NestedIOException
public class 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 |
---|
equals, 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 exceptionMethod 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()
toString
in class java.lang.Throwable
public void printStackTrace()
printStackTrace
in class java.lang.Throwable
public void printStackTrace(java.io.PrintWriter printer)
printStackTrace
in class java.lang.Throwable
public void printStackTrace(java.io.PrintStream printer)
printStackTrace
in class java.lang.Throwable
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |