java.security
Class KeyException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.security.GeneralSecurityException
              extended by java.security.KeyException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
InvalidKeyException, KeyManagementException

public class KeyException
extends GeneralSecurityException

This exception is thrown when there is a problem with a key.

See Also:
Key, Serialized Form

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

KeyException

public KeyException()
This method initializes a new instance of KeyException with no descriptive message.


KeyException

public KeyException(String msg)
This method initializes a new instance of KeyException with a descriptive message.

Parameters:
msg - the descriptive message

KeyException

public KeyException(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

KeyException

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

Parameters:
cause - the cause
Since:
1.5