Package java.security
Class KeyException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.security.GeneralSecurityException
java.security.KeyException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
InvalidKeyException,KeyManagementException
public class KeyException extends GeneralSecurityException
KeyException is the common superclass of all key related exceptions.- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description KeyException()Constructs a new instance ofKeyException.KeyException(String msg)Constructs a new instance ofKeyExceptionwith the given message.KeyException(String message, Throwable cause)Constructs a new instance ofKeyExceptionwith the given message and the cause.KeyException(Throwable cause)Constructs a new instance ofKeyExceptionwith the cause. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
KeyException
Constructs a new instance ofKeyExceptionwith the given message.- Parameters:
msg- the detail message for this exception.
-
KeyException
public KeyException()Constructs a new instance ofKeyException. -
KeyException
Constructs a new instance ofKeyExceptionwith the given message and the cause.- Parameters:
message- the detail message for this exception.cause- the exception which is the cause for this exception.
-
KeyException
Constructs a new instance ofKeyExceptionwith the cause.- Parameters:
cause- the exception which is the cause for this exception.
-