com.ibm.security.certclient.base
Class PkException
- java.lang.Object
java.lang.Throwable
java.lang.Exception
com.ibm.security.certclient.base.PkException
All implemented interfaces:
Direct known subclasses:
- public class PkException
- extends Exception
Author:
Rod Mancisidor
See Also:
Constructor Summary
| Constructor and Description |
|---|
PkException()
Constructs a new
PkException with null as its error
message string and null as the wrappedException.
|
PkException(String s)
Constructs a new
PkException with s as its error
message string and null as the wrappedException.
|
PkException(String s,Throwable wrappedException)
Constructs a new
PkException with s as its error
message string and wrappedException as the
wrappedException.
|
PkException(Throwable wrappedException)
Constructs a new
PkException 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
PkException and its backtrace to the standard
error stream.
|
|
printStackTrace(PrintStream s)
Prints this
PkException and its backtrace to the
specified print stream.
|
|
printStackTrace(PrintWriter s)
Prints this
PkException 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
PkException
- public PkException()
PkException
- public PkException(String s)
Constructs a new
PkException with s as its error
message string and null as the wrappedException. Also,
the stack trace is filled.
PkException
Constructs a new
PkException with s as its error
message string and wrappedException as the
wrappedException. Also, the stack trace is filled.
PkException
- public PkException(Throwable wrappedException)
Constructs a new
PkException 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
PkException and its backtrace to the standard
error stream. This method prints a stack trace for this
PkException 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
PkException and its backtrace to the
specified print stream.
Overrides:
printStackTrace in class Throwable
printStackTrace
- public void printStackTrace(PrintWriter s)
Prints this
PkException and its backtrace to the specified
print writer.
Overrides:
printStackTrace in class Throwable
PkExceptionwithnullas its error message string andnullas thewrappedException. Also, the stack trace is filled.