com.ibm.security.pkcsutil
Class PKCSException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--java.security.GeneralSecurityException
|
+--com.ibm.security.pkcsutil.PKCSException
- public final class PKCSException
- extends GeneralSecurityException
PKCSException is a wrapper exception for exceptions thrown by the JCE.
If the PKCSException stems from another exception, the exception
that the PKCSException wraps will be accessible with the getRelatedException
method.
- See Also:
- Serialized Form
Constructor Summary |
PKCSException()
Constructs a PKCSException with no detail
message. |
PKCSException(Exception e,
String msg)
Constructs a PKCSException with the specified
detail message and stores the specified exception. |
PKCSException(String msg)
Constructs a PKCSException with the specified
detail message. |
PKCSException
public PKCSException()
- Constructs a PKCSException with no detail
message. A detail message is a String that describes this
particular exception.
PKCSException
public PKCSException(String msg)
- Constructs a PKCSException with the specified
detail message. A detail message is a String that describes
this particular exception, which may, for example, specify
the invalid argument.
- Parameters:
msg
- the detail message.
PKCSException
public PKCSException(Exception e,
String msg)
- Constructs a PKCSException with the specified
detail message and stores the specified exception.
A detail message is a String that describes
this particular exception, which may, for example, specify
the invalid argument.
- Parameters:
msg
- the detail message.e
- Exception from which the PKCSException stems.
getRelatedException
public Exception getRelatedException()
- Returns the exception from which the PKCSException stems.
- Returns:
- Exception from which the PKCSException stems
or null if the PKCSException is not related to another exception.