Public Member Functions

org.exolab.castor.util.NestedIOException Class Reference

List of all members.

Public Member Functions

 NestedIOException ()
 NestedIOException (String message)
 NestedIOException (Exception exception)
 NestedIOException (String message, Exception exception)
Exception getException ()
void setLocalStackTraceOnly (boolean localTrace)
String toString ()
void printStackTrace ()
void printStackTrace (PrintWriter printer)
void printStackTrace (PrintStream printer)

Detailed Description

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.

Author:
Keith Visco
Version:
Revision:
1.1.1.1
Date:
2003/03/03 07:09:06

Constructor & Destructor Documentation

org.exolab.castor.util.NestedIOException.NestedIOException (  ) 

Creates a new NestedIOException with no message, or nested Exception

org.exolab.castor.util.NestedIOException.NestedIOException ( String  message  ) 

Creates a new NestedIOException with the given message.

Parameters:
message the message for this Exception
org.exolab.castor.util.NestedIOException.NestedIOException ( Exception  exception  ) 

Creates a new NestedIOException with the given nested exception.

Parameters:
exception the nested exception. (Must not be null).
org.exolab.castor.util.NestedIOException.NestedIOException ( String  message,
Exception  exception 
)

Creates a new NestedIOException with the given message and nested exception.

Parameters:
message the detail message for this exception
exception the nested exception

Member Function Documentation

Exception org.exolab.castor.util.NestedIOException.getException (  ) 

Returns the exception, which in turn caused this Exception to be thrown, or null if nested exception exists.

Returns:
the exception, which in turn caused this Exception to be thrown, or null if nested exception exists.
void org.exolab.castor.util.NestedIOException.printStackTrace (  ) 
void org.exolab.castor.util.NestedIOException.printStackTrace ( PrintWriter  printer  ) 
void org.exolab.castor.util.NestedIOException.printStackTrace ( PrintStream  printer  ) 
void org.exolab.castor.util.NestedIOException.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.

Parameters:
localTrace a boolean when true enables local stack trace only.
String org.exolab.castor.util.NestedIOException.toString (  ) 

Returns the String representation of this Exception.

Returns:
the String representation of this Exception.

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties