java.security
Class GeneralSecurityException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by 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 class is the common superclass of all security exceptions. All exceptions in java.security extend this class with the exception (no pun intended) of AccessControlException and CertificateException (which extend SecurityException), ProviderException (RuntimeException), and InvalidParamterException (IllegalArgumentException).

See Also:
Serialized Form

Constructor Summary
GeneralSecurityException()
          Create a new instance with no descriptive error message.
GeneralSecurityException(String msg)
          Create a new instance with a descriptive error message.
GeneralSecurityException(String s, Throwable cause)
          Create a new instance with a descriptive error message and a cause.
GeneralSecurityException(Throwable cause)
          Create a new instance with a cause.
 
Method Summary
 
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()
Create a new instance with no descriptive error message.


GeneralSecurityException

public GeneralSecurityException(String msg)
Create a new instance with a descriptive error message.

Parameters:
msg - the descriptive error message

GeneralSecurityException

public GeneralSecurityException(String s,
                                Throwable cause)
Create a new instance with a descriptive error message and a cause.

Parameters:
s - the descriptive error message
cause - the cause
Since:
1.5

GeneralSecurityException

public GeneralSecurityException(Throwable cause)
Create a new instance with a cause.

Parameters:
cause - the cause
Since:
1.5