|
||||||||||
| 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
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(Exception exception)
Creates a new NestedIOException with the given nested exception. |
|
NestedIOException(String message)
Creates a new NestedIOException with the given message. |
|
NestedIOException(String message,
Exception exception)
Creates a new NestedIOException with the given message and nested exception. |
|
| Method Summary | |
|---|---|
Exception |
getException()
Returns the exception, which in turn caused this Exception to be thrown, or null if nested exception exists. |
void |
printStackTrace()
|
void |
printStackTrace(PrintStream printer)
|
void |
printStackTrace(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. |
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(String message)
message - the message for this Exceptionpublic NestedIOException(Exception exception)
exception - the nested exception. (Must not be null).
public NestedIOException(String message,
Exception exception)
message - the detail message for this exceptionexception - the nested exception| Method Detail |
|---|
public Exception getException()
public void setLocalStackTraceOnly(boolean localTrace)
localTrace - a boolean when true enables local stack trace only.public String toString()
toString in class Throwablepublic void printStackTrace()
printStackTrace in class Throwablepublic void printStackTrace(PrintWriter printer)
printStackTrace in class Throwablepublic void printStackTrace(PrintStream printer)
printStackTrace in class Throwable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||