open class UnknownFormatConversionException : IllegalFormatException
kotlin.Any
   ↳ kotlin.Throwable
   ↳ java.lang.Exception
   ↳ java.lang.RuntimeException
   ↳ java.lang.IllegalArgumentException
   ↳ java.util.IllegalFormatException
   ↳ java.util.UnknownFormatConversionException

Unchecked exception thrown when an unknown conversion is given.

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 unknown conversion.

Public methods
open String!

Returns the unknown conversion.

Properties
open String?

Returns the detail message string of this throwable.

Public constructors

UnknownFormatConversionException

UnknownFormatConversionException(s: String!)

Constructs an instance of this class with the unknown conversion.

Parameters
s String!: Unknown conversion

Public methods

getConversion

open fun getConversion(): String!

Returns the unknown conversion.

Return
String! The unknown conversion.

Properties

message

open val message: String?

Returns the detail message string of this throwable.

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 2026-02-13 UTC.