public class NestedIOException extends IOException
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, setStackTrace
public NestedIOException()
public NestedIOException(String message)
message
- the message for this Exceptionpublic NestedIOException(Exception exception)
exception
- the nested exception. (Must not be null).public Exception getException()
public void setLocalStackTraceOnly(boolean localTrace)
localTrace
- a boolean when true enables local stack trace only.public String toString()
public void printStackTrace()
printStackTrace
in class Throwable
public void printStackTrace(PrintWriter printer)
printStackTrace
in class Throwable
public void printStackTrace(PrintStream printer)
printStackTrace
in class Throwable
Copyright © 2019. All rights reserved.