APIdia Launch Partner
Top Description Fields Constructors
java.security

public Class GeneralSecurityException

extends Exception
Class Inheritance
Known Direct Subclasses
java.security.InvalidAlgorithmParameterException, java.security.KeyStoreException, java.security.NoSuchAlgorithmException, java.security.NoSuchProviderException, java.security.KeyException, java.security.SignatureException, java.security.UnrecoverableEntryException, java.security.cert.CertificateException, java.security.cert.CertPathBuilderException, java.security.cert.CertPathValidatorException, java.security.cert.CertStoreException, java.security.cert.CRLException, java.security.spec.InvalidKeySpecException, java.security.spec.InvalidParameterSpecException, javax.crypto.IllegalBlockSizeException, javax.crypto.BadPaddingException, javax.crypto.CryptoPolicyParser.ParsingException, javax.crypto.DecapsulateException, javax.crypto.ExemptionMechanismException, javax.crypto.NoSuchPaddingException, javax.crypto.ShortBufferException, javax.security.auth.login.LoginException, com.sun.security.ntlm.NTLMException, sun.security.provider.PolicyParser.ParsingException, sun.security.util.ChannelBindingException, sun.security.util.PropertyExpander.ExpandException, java.security.DigestException

The GeneralSecurityException class is a generic security exception class that provides type safety for all the security-related exception classes that extend from it.
Author
Jan Luehe
Since
1.2

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
public
GeneralSecurityException()

Constructs a GeneralSecurityException with no detail message.

public
GeneralSecurityException(String
the detail message.
msg
)

Constructs a GeneralSecurityException with the specified detail message.

public
GeneralSecurityException(String
the detail message (which is saved for later retrieval by the getMessage() method).
message
,
Throwable
the 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.)
cause
)

Creates a GeneralSecurityException with the specified detail message and cause.

public
GeneralSecurityException(Throwable
the 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.)
cause
)

Creates a GeneralSecurityException with the specified cause and a detail message of (cause==null ?

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.lang.Exception.serialVersionUID.

Annotations
@Serial

Constructor Detail

GeneralSecurityExceptionback to summary
public GeneralSecurityException()

Constructs a GeneralSecurityException with no detail message.

GeneralSecurityExceptionback to summary
public GeneralSecurityException(String msg)

Constructs a GeneralSecurityException with the specified detail message. A detail message is a String that describes this particular exception.

Parameters
msg:String

the detail message.

GeneralSecurityExceptionback to summary
public GeneralSecurityException(String message, Throwable cause)

Creates a GeneralSecurityException with the specified detail message and cause.

Parameters
message:String

the detail message (which is saved for later retrieval by the getMessage() method).

cause:Throwable

the 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.)

Since
1.5
GeneralSecurityExceptionback to summary
public GeneralSecurityException(Throwable cause)

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).

Parameters
cause:Throwable

the 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.)

Since
1.5