Stay organized with collections
Save and categorize content based on your preferences.
AccountsException
open class AccountsException : Exception
Summary
Public constructors
AccountsException
AccountsException()
AccountsException
AccountsException(message: String!)
AccountsException
AccountsException(cause: Throwable!)
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,["# AccountsException\n\nAdded in [API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nAccountsException\n=================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/accounts/AccountsException \"View this page in Java\") \n\n```\nopen class AccountsException : 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.accounts.AccountsException](#) |\n\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Known Direct Subclasses [AuthenticatorException](/reference/kotlin/android/accounts/AuthenticatorException), [NetworkErrorException](/reference/kotlin/android/accounts/NetworkErrorException), [OperationCanceledException](/reference/kotlin/android/accounts/OperationCanceledException) |---------------------------------------------------------------------------------------------|--------| | [AuthenticatorException](/reference/kotlin/android/accounts/AuthenticatorException) | \u003cbr /\u003e | | [NetworkErrorException](/reference/kotlin/android/accounts/NetworkErrorException) | \u003cbr /\u003e | | [OperationCanceledException](/reference/kotlin/android/accounts/OperationCanceledException) | \u003cbr /\u003e | |\n\nSummary\n-------\n\n| Public constructors ||\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| [AccountsException](#AccountsException())`()` \u003cbr /\u003e |\n| [AccountsException](#AccountsException(kotlin.String))`(`message:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`)` \u003cbr /\u003e |\n| [AccountsException](#AccountsException(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)!`)` \u003cbr /\u003e |\n| [AccountsException](#AccountsException(kotlin.Throwable))`(`cause:` `[Throwable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html)!`)` \u003cbr /\u003e |\n\nPublic constructors\n-------------------\n\n### AccountsException\n\nAdded in [API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nAccountsException()\n``` \n\n### AccountsException\n\nAdded in [API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nAccountsException(message: String!)\n``` \n\n### AccountsException\n\nAdded in [API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nAccountsException(\n message: String!, \n cause: Throwable!)\n``` \n\n### AccountsException\n\nAdded in [API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nAccountsException(cause: Throwable!)\n```"]]