Package java.security

Class 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 Details

    • KeyException

      public KeyException​(String msg)
      Constructs a new instance of KeyException with the given message.
      Parameters:
      msg - the detail message for this exception.
    • KeyException

      public KeyException()
      Constructs a new instance of KeyException.
    • KeyException

      public KeyException​(String message, Throwable cause)
      Constructs a new instance of KeyException with 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

      public KeyException​(Throwable cause)
      Constructs a new instance of KeyException with the cause.
      Parameters:
      cause - the exception which is the cause for this exception.