public class java.security
GeneralSecurityException


Show All Login
Java SE 6
  
Extends: Throwable > Exception
Extended by: CertificateException, CertPathBuilderException, CertPathValidatorException, CertStoreException, CRLException, DigestException, InvalidAlgorithmParameterException, InvalidKeySpecException, InvalidParameterSpecException, KeyException, KeyStoreException, LoginException, NoSuchAlgorithmException, NoSuchProviderException, SignatureException, UnrecoverableEntryException
Details
The GeneralSecurityException class is a generic security exception class that provides type safety for all the security-related exception classes that extend from it.
version1.17, 05/11/17

Constructors
public GeneralSecurityException()
Constructs a GeneralSecurityException with no detail message.
public GeneralSecurityException(String msg) Details
Constructs a GeneralSecurityException with the specified detail message. A detail message is a String that describes this particular exception.
msgthe detail message.
public GeneralSecurityException(String message, Throwable cause) Details
Creates a GeneralSecurityException with the specified detail message and cause.
messagethe detail message (which is saved for later retrieval by the #getMessage() method).
causethe cause (which is saved for later retrieval by the #getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
since1.5
public GeneralSecurityException(Throwable cause) Details
Creates a GeneralSecurityException with the specified cause and a detail message of (cause==null ? null : cause.toString()) (which typically contains the class and detail message of cause).
causethe cause (which is saved for later retrieval by the #getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
since1.5