Stay organized with collections
Save and categorize content based on your preferences.
KeyChainException
open class KeyChainException : Exception
Thrown on problems accessing the KeyChain
.
Summary
Public constructors |
Constructs a new KeyChainException that includes the current stack trace.
|
Constructs a new KeyChainException with the current stack trace and the specified detail message.
|
Constructs a new KeyChainException with the current stack trace, the specified detail message and the specified cause.
|
Constructs a new KeyChainException with the current stack trace and the specified cause.
|
Public constructors
KeyChainException
KeyChainException()
Constructs a new KeyChainException
that includes the current stack trace.
KeyChainException
KeyChainException(detailMessage: String!)
Constructs a new KeyChainException
with the current stack trace and the specified detail message.
Parameters |
detailMessage |
String!: the detail message for this exception. |
KeyChainException
KeyChainException(
message: String!,
cause: Throwable!)
Constructs a new KeyChainException
with the current stack trace, the specified detail message and the specified cause.
Parameters |
message |
String!: the detail message for this exception. |
cause |
Throwable!: the cause of this exception, may be null . |
KeyChainException
KeyChainException(cause: Throwable!)
Constructs a new KeyChainException
with the current stack trace and the specified cause.
Parameters |
cause |
Throwable!: the cause of this exception, may be null . |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# KeyChainException\n\nAdded in [API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nKeyChainException\n=================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/security/KeyChainException \"View this page in Java\") \n\n```\nopen class KeyChainException : Exception\n```\n\n|---|---|---|-----------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||||\n| ↳ | [kotlin.Throwable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html) |||\n| | ↳ | [java.lang.Exception](../../java/lang/Exception.html#) ||\n| | | ↳ | [android.security.KeyChainException](#) |\n\nThrown on problems accessing the [KeyChain](/reference/kotlin/android/security/KeyChain).\n\nSummary\n-------\n\n| Public constructors ||\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| [KeyChainException](#KeyChainException())`()` Constructs a new `KeyChainException` that includes the current stack trace. |\n| [KeyChainException](#KeyChainException(kotlin.String))`(`detailMessage:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`)` Constructs a new `KeyChainException` with the current stack trace and the specified detail message. |\n| [KeyChainException](#KeyChainException(kotlin.String,%20kotlin.Throwable))`(`message:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`, `cause:` `[Throwable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html)!`)` Constructs a new `KeyChainException` with the current stack trace, the specified detail message and the specified cause. |\n| [KeyChainException](#KeyChainException(kotlin.Throwable))`(`cause:` `[Throwable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html)!`)` Constructs a new `KeyChainException` with the current stack trace and the specified cause. |\n\nPublic constructors\n-------------------\n\n### KeyChainException\n\nAdded in [API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nKeyChainException()\n```\n\nConstructs a new `KeyChainException` that includes the current stack trace. \n\n### KeyChainException\n\nAdded in [API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nKeyChainException(detailMessage: String!)\n```\n\nConstructs a new `KeyChainException` with the current stack trace and the specified detail message.\n\n| Parameters ||\n|-----------------|---------------------------------------------------------------------------------------------------------------------------|\n| `detailMessage` | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!: the detail message for this exception. |\n\n### KeyChainException\n\nAdded in [API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nKeyChainException(\n message: String!, \n cause: Throwable!)\n```\n\nConstructs a new `KeyChainException` with the current stack trace, the specified detail message and the specified cause.\n\n| Parameters ||\n|-----------|--------------------------------------------------------------------------------------------------------------------------------------|\n| `message` | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!: the detail message for this exception. |\n| `cause` | [Throwable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html)!: the cause of this exception, may be `null`. |\n\n### KeyChainException\n\nAdded in [API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nKeyChainException(cause: Throwable!)\n```\n\nConstructs a new `KeyChainException` with the current stack trace and the specified cause.\n\n| Parameters ||\n|---------|--------------------------------------------------------------------------------------------------------------------------------------|\n| `cause` | [Throwable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html)!: the cause of this exception, may be `null`. |"]]