Stay organized with collections
Save and categorize content based on your preferences.
open class FormatFlagsConversionMismatchException : IllegalFormatException
Unchecked exception thrown when a conversion and flag are incompatible.
Unless otherwise specified, passing a null
argument to any method or constructor in this class will cause a NullPointerException
to be thrown.
Summary
Public constructors |
Constructs an instance of this class with the specified flag and conversion.
|
Public methods |
open Char |
Returns the incompatible conversion.
|
open String! |
Returns the incompatible flag.
|
Public constructors
FormatFlagsConversionMismatchException(
f: String!,
c: Char)
Constructs an instance of this class with the specified flag and conversion.
Parameters |
f |
String!: The flag |
c |
Char: The conversion |
Public methods
getConversion
open fun getConversion(): Char
Returns the incompatible conversion.
Return |
Char |
The conversion |
getFlags
open fun getFlags(): String!
Returns the incompatible flag.
Properties
message
open val message: String?
Return |
String? |
the detail message string of this Throwable instance (which 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.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# FormatFlagsConversionMismatchException\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nFormatFlagsConversionMismatchException\n======================================\n\n```\nopen class FormatFlagsConversionMismatchException : IllegalFormatException\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.lang.RuntimeException](../lang/RuntimeException.html#) ||||\n| | | | ↳ | [java.lang.IllegalArgumentException](../lang/IllegalArgumentException.html#) |||\n| | | | | ↳ | [java.util.IllegalFormatException](/reference/kotlin/java/util/IllegalFormatException) ||\n| | | | | | ↳ | [java.util.FormatFlagsConversionMismatchException](#) |\n\nUnchecked exception thrown when a conversion and flag are incompatible.\n\nUnless otherwise specified, passing a `null` argument to any method or constructor in this class will cause a [NullPointerException](../lang/NullPointerException.html#) to be thrown.\n\nSummary\n-------\n\n| Public constructors ||\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| [FormatFlagsConversionMismatchException](#FormatFlagsConversionMismatchException(kotlin.String,%20kotlin.Char))`(`f:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`, `c:` `[Char](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-char/index.html)`)` Constructs an instance of this class with the specified flag and conversion. |\n\n| Public methods ||\n|----------------------------------------------------------------------------------------|----------------------------------------------------------------------------|\n| open [Char](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-char/index.html) | [getConversion](#getConversion())`()` Returns the incompatible conversion. |\n| open [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)! | [getFlags](#getFlags())`()` Returns the incompatible flag. |\n\n| Properties ||\n|----------------------------------------------------------------------------------------|------------------------------------------|\n| open [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)? | [message](#message:kotlin.String) \u003cbr /\u003e |\n\nPublic constructors\n-------------------\n\n### FormatFlagsConversionMismatchException\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nFormatFlagsConversionMismatchException(\n f: String!, \n c: Char)\n```\n\nConstructs an instance of this class with the specified flag and conversion.\n\n| Parameters ||\n|-----|----------------------------------------------------------------------------------------------|\n| `f` | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!: The flag |\n| `c` | [Char](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-char/index.html): The conversion |\n\nPublic methods\n--------------\n\n### getConversion\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nopen fun getConversion(): Char\n```\n\nReturns the incompatible conversion.\n\n| Return ||\n|------------------------------------------------------------------------------|----------------|\n| [Char](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-char/index.html) | The conversion |\n\n### getFlags\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nopen fun getFlags(): String!\n```\n\nReturns the incompatible flag.\n\n| Return ||\n|-----------------------------------------------------------------------------------|----------|\n| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)! | The flag |\n\nProperties\n----------\n\n### message\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nopen val message: String?\n```\n\n| Return ||\n|-----------------------------------------------------------------------------------|-------------------------------------------------------------------------------|\n| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)? | the detail message string of this `Throwable` instance (which may be `null`). |"]]