org.exolab.castor.util
Class NestedIOException
java.io.IOException
org.exolab.castor.util.NestedIOException
public class NestedIOException
extends java.io.IOException
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.
$Revision: 1.1.1.1 $ $Date: 2003/03/03 07:09:06 $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.
|
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.
|
NestedIOException
public NestedIOException()
Creates a new NestedIOException with no message,
or nested Exception
NestedIOException
public NestedIOException(Exception exception)
Creates a new NestedIOException with the given nested
exception.
exception
- the nested exception. (Must not be null).
NestedIOException
public NestedIOException(String message)
Creates a new NestedIOException with the given message.
message
- the message for this Exception
NestedIOException
public NestedIOException(String message,
Exception exception)
Creates a new NestedIOException with the given message
and nested exception.
message
- the detail message for this exceptionexception
- the nested exception
getException
public Exception getException()
Returns the exception, which in turn caused this Exception to
be thrown, or null if nested exception exists.
- the exception, which in turn caused this Exception to
be thrown, or null if nested exception exists.
printStackTrace
public void printStackTrace()
printStackTrace
public void printStackTrace(PrintStream printer)
printStackTrace
public void printStackTrace(PrintWriter printer)
setLocalStackTraceOnly
public 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. By
default the nested exception is used for printing stack trace.
localTrace
- a boolean when true enables local stack trace only.
toString
public String toString()
Returns the String representation of this Exception.
- the String representation of this Exception.
Intalio Inc. (C) 1999-2003. All rights reserved http://www.intalio.com