Stay organized with collections
Save and categorize content based on your preferences.
ClearCredentialStateException
open class ClearCredentialStateException : Exception
Represents an error encountered during the CredentialManager.clearCredentialState(ClearCredentialStateRequest,
operation.
Summary
Constants |
static String |
The error type value for when the given operation failed due to an unknown reason.
|
Public methods |
open String |
Returns the specific exception type.
|
Constants
TYPE_UNKNOWN
static val TYPE_UNKNOWN: String
The error type value for when the given operation failed due to an unknown reason.
Value: "android.credentials.ClearCredentialStateException.TYPE_UNKNOWN"
Public constructors
ClearCredentialStateException
ClearCredentialStateException(type: String)
Constructs a ClearCredentialStateException
.
Parameters |
type |
String: This value cannot be null . |
Exceptions |
java.lang.IllegalArgumentException |
If type is empty. |
ClearCredentialStateException
ClearCredentialStateException(
type: String,
message: String?)
Constructs a ClearCredentialStateException
.
Parameters |
type |
String: This value cannot be null . |
message |
String?: This value may be null . |
Exceptions |
java.lang.IllegalArgumentException |
If type is empty. |
Public methods
getType
open fun getType(): String
Returns the specific exception type.
Return |
String |
This value cannot 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,["# ClearCredentialStateException\n\nAdded in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nClearCredentialStateException\n=============================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/credentials/ClearCredentialStateException \"View this page in Java\") \n\n```\nopen class ClearCredentialStateException : 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.credentials.ClearCredentialStateException](#) |\n\nRepresents an error encountered during the [CredentialManager.clearCredentialState(ClearCredentialStateRequest,](/reference/kotlin/android/credentials/CredentialManager#clearCredentialState(android.credentials.ClearCredentialStateRequest,%20android.os.CancellationSignal,%20java.util.concurrent.Executor,%20android.os.OutcomeReceiver)) operation.\n\nSummary\n-------\n\n| Constants ||\n|-----------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------|\n| static [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [TYPE_UNKNOWN](#TYPE_UNKNOWN:kotlin.String) The error type value for when the given operation failed due to an unknown reason. |\n\n| Public constructors ||\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| [ClearCredentialStateException](#ClearCredentialStateException(kotlin.String))`(`type:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`)` Constructs a [ClearCredentialStateException](#). |\n| [ClearCredentialStateException](#ClearCredentialStateException(kotlin.String,%20kotlin.String))`(`type:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`, `message:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)?`)` Constructs a [ClearCredentialStateException](#). |\n| [ClearCredentialStateException](#ClearCredentialStateException(kotlin.String,%20kotlin.String,%20kotlin.Throwable))`(`type:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`, `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 [ClearCredentialStateException](#). |\n| [ClearCredentialStateException](#ClearCredentialStateException(kotlin.String,%20kotlin.Throwable))`(`type:` `[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 [ClearCredentialStateException](#). |\n\n| Public methods ||\n|---------------------------------------------------------------------------------------|----------------------------------------------------------------|\n| open [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [getType](#getType())`()` Returns the specific exception type. |\n\nConstants\n---------\n\n### TYPE_UNKNOWN\n\nAdded in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val TYPE_UNKNOWN: String\n```\n\nThe error type value for when the given operation failed due to an unknown reason. \n\n Value: \"android.credentials.ClearCredentialStateException.TYPE_UNKNOWN\"\n\nPublic constructors\n-------------------\n\n### ClearCredentialStateException\n\nAdded in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nClearCredentialStateException(type: String)\n```\n\nConstructs a [ClearCredentialStateException](#).\n\n| Parameters ||\n|--------|----------------------------------------------------------------------------------------------------------------|\n| `type` | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html): This value cannot be `null`. |\n\n| Exceptions ||\n|--------------------------------------|-------------------|\n| `java.lang.IllegalArgumentException` | If type is empty. |\n\n### ClearCredentialStateException\n\nAdded in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nClearCredentialStateException(\n type: String, \n message: String?)\n```\n\nConstructs a [ClearCredentialStateException](#).\n\n| Parameters ||\n|-----------|----------------------------------------------------------------------------------------------------------------|\n| `type` | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html): This value cannot be `null`. |\n| `message` | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)?: This value may be `null`. |\n\n| Exceptions ||\n|--------------------------------------|-------------------|\n| `java.lang.IllegalArgumentException` | If type is empty. |\n\n### ClearCredentialStateException\n\nAdded in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nClearCredentialStateException(\n type: String, \n message: String?, \n cause: Throwable?)\n```\n\nConstructs a [ClearCredentialStateException](#).\n\n| Parameters ||\n|-----------|--------------------------------------------------------------------------------------------------------------------|\n| `type` | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html): This value cannot be `null`. |\n| `message` | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)?: This value may be `null`. |\n| `cause` | [Throwable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html)?: This value may be `null`. |\n\n| Exceptions ||\n|--------------------------------------|-------------------|\n| `java.lang.IllegalArgumentException` | If type is empty. |\n\n### ClearCredentialStateException\n\nAdded in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nClearCredentialStateException(\n type: String, \n cause: Throwable?)\n```\n\nConstructs a [ClearCredentialStateException](#).\n\n| Parameters ||\n|---------|--------------------------------------------------------------------------------------------------------------------|\n| `type` | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html): This value cannot be `null`. |\n| `cause` | [Throwable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html)?: This value may be `null`. |\n\n| Exceptions ||\n|--------------------------------------|-------------------|\n| `java.lang.IllegalArgumentException` | If type is empty. |\n\nPublic methods\n--------------\n\n### getType\n\nAdded in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nopen fun getType(): String\n```\n\nReturns the specific exception type.\n\n| Return ||\n|----------------------------------------------------------------------------------|------------------------------|\n| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | This value cannot be `null`. |"]]