Stay organized with collections
Save and categorize content based on your preferences.
open class InvalidPreferencesFormatException : Exception
Thrown to indicate that an operation could not complete because the input did not conform to the appropriate XML document type for a collection of preferences, as per the Preferences
specification.
Summary
Public constructors |
Constructs an InvalidPreferencesFormatException with the specified detail message.
|
Constructs an InvalidPreferencesFormatException with the specified detail message and cause.
|
Constructs an InvalidPreferencesFormatException with the specified cause.
|
Public constructors
InvalidPreferencesFormatException(message: String!)
Constructs an InvalidPreferencesFormatException with the specified detail message.
InvalidPreferencesFormatException(
message: String!,
cause: Throwable!)
Constructs an InvalidPreferencesFormatException with the specified detail message and cause.
InvalidPreferencesFormatException(cause: Throwable!)
Constructs an InvalidPreferencesFormatException with the specified cause.
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,["# InvalidPreferencesFormatException\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nInvalidPreferencesFormatException\n=================================\n\n```\nopen class InvalidPreferencesFormatException : 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](../../lang/Exception.html#) ||\n| | | ↳ | [java.util.prefs.InvalidPreferencesFormatException](#) |\n\nThrown to indicate that an operation could not complete because the input did not conform to the appropriate XML document type for a collection of preferences, as per the [Preferences](/reference/kotlin/java/util/prefs/Preferences) specification.\n\nSummary\n-------\n\n| Public constructors ||\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| [InvalidPreferencesFormatException](#InvalidPreferencesFormatException(kotlin.String))`(`message:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`)` Constructs an InvalidPreferencesFormatException with the specified detail message. |\n| [InvalidPreferencesFormatException](#InvalidPreferencesFormatException(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 an InvalidPreferencesFormatException with the specified detail message and cause. |\n| [InvalidPreferencesFormatException](#InvalidPreferencesFormatException(kotlin.Throwable))`(`cause:` `[Throwable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html)!`)` Constructs an InvalidPreferencesFormatException with the specified cause. |\n\nPublic constructors\n-------------------\n\n### InvalidPreferencesFormatException\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nInvalidPreferencesFormatException(message: String!)\n```\n\nConstructs an InvalidPreferencesFormatException with the specified detail message.\n\n| Parameters ||\n|-----------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `message` | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!: the detail message. The detail message is saved for later retrieval by the [Throwable.getMessage()](../../lang/Throwable.html#getMessage()) method. |\n\n### InvalidPreferencesFormatException\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nInvalidPreferencesFormatException(\n message: String!, \n cause: Throwable!)\n```\n\nConstructs an InvalidPreferencesFormatException with the specified detail message and cause.\n\n| Parameters ||\n|-----------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `message` | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!: the detail message. The detail message is saved for later retrieval by the [Throwable.getMessage()](../../lang/Throwable.html#getMessage()) method. |\n| `cause` | [Throwable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html)!: the cause (which is saved for later retrieval by the [Throwable.getCause()](../../lang/Throwable.html#getCause()) method). |\n\n### InvalidPreferencesFormatException\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nInvalidPreferencesFormatException(cause: Throwable!)\n```\n\nConstructs an InvalidPreferencesFormatException with the specified cause.\n\n| Parameters ||\n|---------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `cause` | [Throwable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html)!: the cause (which is saved for later retrieval by the [Throwable.getCause()](../../lang/Throwable.html#getCause()) method). |"]]