java.security
Class GeneralSecurityExceptionjava.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, UnrecoverableKeyException
- public class GeneralSecurityException
- extends Exception
This is the general security exception class, which serves to group all the exception classes of the java.security package that extend from it.
The exceptions to this grouping are:
- AccessControlException and RMISecurityException, which subclass java.lang.SecurityException
- ProviderException, which subclasses java.lang.RuntimeException
- InvalidParameterException, which subclasses java.lang.IllegalArgumentException
- See Also:
- Serialized Form
Constructor Summary
GeneralSecurityException()
Constructs a GeneralSecurityException with no detail message.GeneralSecurityException(String msg)
Constructs a GeneralSecurityException with the specified detail message.
Methods inherited from class java.lang.Throwable fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
Methods inherited from class java.lang.Object clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Constructor Detail
GeneralSecurityException
public GeneralSecurityException()
- Constructs a GeneralSecurityException with no detail message.
GeneralSecurityException
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 - the detail message.