iaik.pkcs.pkcs11
Class TokenRuntimeException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--java.lang.RuntimeException
|
+--iaik.pkcs.pkcs11.TokenRuntimeException
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- PKCS11RuntimeException
- public class TokenRuntimeException
- extends java.lang.RuntimeException
The base class for all runtiem exceptions in this package. It is able to wrap
a other exception from a lower layer.
- Version:
- 1.0
- Author:
- Karl Scheibelhofer
- See Also:
- Serialized Form
Constructor Summary |
TokenRuntimeException()
The default constructor. |
TokenRuntimeException(java.lang.Exception encapsulatedException)
Constructor taking an other exception to wrap. |
TokenRuntimeException(java.lang.String message)
Constructor taking an exception message. |
TokenRuntimeException(java.lang.String message,
java.lang.Exception encapsulatedException)
Constructor taking a message for this exception and an other exception to
wrap. |
Method Summary |
java.lang.Exception |
getEncapsulatedException()
Get the encapsulated (wrapped) exceptin. |
java.lang.String |
toString()
Returns the string representation of this exception, including the string
representation of the wrapped (encapsulated) exception. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
encapsulatedException_
protected java.lang.Exception encapsulatedException_
- An encapsulated (inner) exception. Possibly, an exception from a lower
layer that ca be propagated to a higher layer only in wrapped form.
TokenRuntimeException
public TokenRuntimeException()
- The default constructor.
TokenRuntimeException
public TokenRuntimeException(java.lang.String message)
- Constructor taking an exception message.
- Parameters:
message
- The message giving details about the exception to ease
debugging.
TokenRuntimeException
public TokenRuntimeException(java.lang.Exception encapsulatedException)
- Constructor taking an other exception to wrap.
- Parameters:
encapsulatedException
- The other exception the wrap into this.
TokenRuntimeException
public TokenRuntimeException(java.lang.String message,
java.lang.Exception encapsulatedException)
- Constructor taking a message for this exception and an other exception to
wrap.
- Parameters:
message
- The message giving details about the exception to ease
debugging.encapsulatedException
- The other exception the wrap into this.
getEncapsulatedException
public java.lang.Exception getEncapsulatedException()
- Get the encapsulated (wrapped) exceptin. May be null.
- Returns:
- The encasulated (wrapped) exception, or null if there is no inner
exception.
toString
public java.lang.String toString()
- Returns the string representation of this exception, including the string
representation of the wrapped (encapsulated) exception.
- Overrides:
toString
in class java.lang.Throwable
- Returns:
- The string representation of exception.
IAIK JavaSecurity Website http://jce.iaik.tugraz.at/
IAIK at Graz University of Technology, Austria, Europe
Copyright 2001-2004, IAIK, Graz University of Technology, Inffeldgasse 16a, 8010 Graz, Austria. All Rights Reserved.
version 1.2.18