java.io.Serializable
public class NestedIOException
extends java.io.IOException
Constructor | Description |
---|---|
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.
|
Modifier and Type | Method | Description |
---|---|---|
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.
|
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 exceptionpublic 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
Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com