Package java.security

Class GeneralSecurityException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.security.GeneralSecurityException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
BadPaddingException, CertificateException, CertPathBuilderException, CertPathValidatorException, CertStoreException, CRLException, DigestException, ExemptionMechanismException, IllegalBlockSizeException, InvalidAlgorithmParameterException, InvalidKeySpecException, InvalidParameterSpecException, KeyException, KeyStoreException, LoginException, NoSuchAlgorithmException, NoSuchPaddingException, NoSuchProviderException, ShortBufferException, SignatureException, UnrecoverableEntryException

public class GeneralSecurityException
extends Exception
GeneralSecurityException is a general security exception and the superclass for all security specific exceptions.
See Also:
Serialized Form
  • Constructor Details

    • GeneralSecurityException

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

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

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

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