com.ibm.security.certclient.base
Class PkIoException
- java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
com.ibm.security.certclient.base.PkIoException
All implemented interfaces:
- public class PkIoException
- extends IOException
Author:
Rod Mancisidor
See Also:
Constructor Summary
| Constructor and Description |
|---|
PkIoException()
Constructs a new
PkIoException with null as its error
message string and null as the wrappedException.
|
PkIoException(String s)
Constructs a new
PkIoException with s as its error
message string and null as the wrappedException.
|
PkIoException(String s,Throwable wrappedException)
Constructs a new
PkIoException with s as its error
message string and wrappedException as the
wrappedException.
|
PkIoException(Throwable wrappedException)
Constructs a new
PkIoException with null as its error
message string and wrappedException as the
wrappedException.
|
Method Summary
| Modifier and Type | Method and Description |
|---|---|
getWrappedException()
Returns the exception that caused this exception or
null if
this exception was not caused by another one.
|
|
|
hasWrappedException()
Returns true if and only if this exception wraps another one that caused
it.
|
|
printStackTrace()
Prints this
PkIoException and its backtrace to the standard
error stream.
|
|
printStackTrace(PrintStream s)
Prints this
PkIoException and its backtrace to the
specified print stream.
|
|
printStackTrace(PrintWriter s)
Prints this
PkIoException and its backtrace to the
specified print writer.
|
toString()
Returns a 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
PkIoException
- public PkIoException()
PkIoException
- public PkIoException(String s)
Constructs a new
PkIoException with s as its error
message string and null as the wrappedException. Also,
the stack trace is filled.
PkIoException
Constructs a new
PkIoException with s as its error
message string and wrappedException as the
wrappedException. Also, the stack trace is filled.
PkIoException
- public PkIoException(Throwable wrappedException)
Constructs a new
PkIoException with null as its error
message string and wrappedException as the
wrappedException. Also, the stack trace is filled.
Method Detail
hasWrappedException
- public boolean hasWrappedException( )
Returns true if and only if this exception wraps another one that caused
it.
getWrappedException
- public Throwable getWrappedException( )
Returns the exception that caused this exception or
null if
this exception was not caused by another one.
toString
- public String toString()
Returns a string representation of this exception.
printStackTrace
- public void printStackTrace()
Prints this
PkIoException and its backtrace to the standard
error stream. This method prints a stack trace for this
PkIoException object on the error output stream that is the
value of the field System.err. The first line of output
contains the result of the toString() method for this
object. Remaining lines represent data previously recorded by the method
Throwable.fillInStackTrace().
Overrides:
printStackTrace in class Throwable
printStackTrace
- public void printStackTrace(PrintStream s)
Prints this
PkIoException and its backtrace to the
specified print stream.
Overrides:
printStackTrace in class Throwable
printStackTrace
- public void printStackTrace(PrintWriter s)
Prints this
PkIoException and its backtrace to the
specified print writer.
Overrides:
printStackTrace in class Throwable
PkIoExceptionwithnullas its error message string andnullas thewrappedException. Also, the stack trace is filled.