Stay organized with collections
Save and categorize content based on your preferences.
open class MissingFormatWidthException : IllegalFormatException
Unchecked exception thrown when the format width is required.
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 format specifier.
|
Public methods |
open String! |
Returns the format specifier which does not have a width.
|
Public constructors
MissingFormatWidthException(s: String!)
Constructs an instance of this class with the specified format specifier.
Parameters |
s |
String!: The format specifier which does not have a width |
Public methods
open fun getFormatSpecifier(): String!
Returns the format specifier which does not have a width.
Return |
String! |
The format specifier which does not have a width |
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.
[[["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,["# MissingFormatWidthException\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nMissingFormatWidthException\n===========================\n\n```\nopen class MissingFormatWidthException : 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.MissingFormatWidthException](#) |\n\nUnchecked exception thrown when the format width is required.\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| [MissingFormatWidthException](#MissingFormatWidthException(kotlin.String))`(`s:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`)` Constructs an instance of this class with the specified format specifier. |\n\n| Public methods ||\n|----------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------|\n| open [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)! | [getFormatSpecifier](#getFormatSpecifier())`()` Returns the format specifier which does not have a width. |\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### MissingFormatWidthException\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nMissingFormatWidthException(s: String!)\n```\n\nConstructs an instance of this class with the specified format specifier.\n\n| Parameters ||\n|-----|-------------------------------------------------------------------------------------------------------------------------------------|\n| `s` | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!: The format specifier which does not have a width |\n\nPublic methods\n--------------\n\n### getFormatSpecifier\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nopen fun getFormatSpecifier(): String!\n```\n\nReturns the format specifier which does not have a width.\n\n| Return ||\n|-----------------------------------------------------------------------------------|--------------------------------------------------|\n| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)! | The format specifier which does not have a width |\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`). |"]]