Skip to content

Most visited

Recently visited

navigation
Added in API level 1

KeyException

public class KeyException
extends GeneralSecurityException

java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ java.security.GeneralSecurityException
         ↳ java.security.KeyException
Known Direct Subclasses
Known Indirect Subclasses


KeyException is the common superclass of all key related exceptions.

Summary

Public constructors

KeyException(String msg)

Constructs a new instance of KeyException with the given message.

KeyException()

Constructs a new instance of KeyException.

KeyException(String message, Throwable cause)

Constructs a new instance of KeyException with the given message and the cause.

KeyException(Throwable cause)

Constructs a new instance of KeyException with the cause.

Inherited methods

From class java.lang.Throwable
From class java.lang.Object

Public constructors

KeyException

Added in API level 1
KeyException (String msg)

Constructs a new instance of KeyException with the given message.

Parameters
msg String: the detail message for this exception.

KeyException

Added in API level 1
KeyException ()

Constructs a new instance of KeyException.

KeyException

Added in API level 1
KeyException (String message, 
                Throwable cause)

Constructs a new instance of KeyException with the given message and the cause.

Parameters
message String: the detail message for this exception.
cause Throwable: the exception which is the cause for this exception.

KeyException

Added in API level 1
KeyException (Throwable cause)

Constructs a new instance of KeyException with the cause.

Parameters
cause Throwable: the exception which is the cause for this exception.
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.