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 Summary
Constructors Constructor Description GeneralSecurityException()Constructs a new instance ofGeneralSecurityException.GeneralSecurityException(String msg)Constructs a new instance ofGeneralSecurityExceptionwith the given message.GeneralSecurityException(String message, Throwable cause)Constructs a new instance ofGeneralSecurityExceptionwith the given message and the cause.GeneralSecurityException(Throwable cause)Constructs a new instance ofGeneralSecurityExceptionwith 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
-
GeneralSecurityException
Constructs a new instance ofGeneralSecurityExceptionwith the given message.- Parameters:
msg- the detail message for this exception.
-
GeneralSecurityException
public GeneralSecurityException()Constructs a new instance ofGeneralSecurityException. -
GeneralSecurityException
Constructs a new instance ofGeneralSecurityExceptionwith 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
Constructs a new instance ofGeneralSecurityExceptionwith the cause.- Parameters:
cause- the exception which is the cause for this exception.
-