Added in API level 1

IllegalFormatConversionException

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

Unchecked exception thrown when the argument corresponding to the format specifier is of an incompatible type.

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 mismatched conversion and the corresponding argument class.

Public methods
open Class<*>!

Returns the class of the mismatched argument.

open Char

Returns the inapplicable conversion.

Properties
open String?

Returns the detail message string of this throwable.

Public constructors

IllegalFormatConversionException

Added in API level 1
IllegalFormatConversionException(
    c: Char,
    arg: Class<*>!)

Constructs an instance of this class with the mismatched conversion and the corresponding argument class.

Parameters
c Char: Inapplicable conversion
arg Class<*>!: Class of the mismatched argument

Public methods

getArgumentClass

Added in API level 1
open fun getArgumentClass(): Class<*>!

Returns the class of the mismatched argument.

Return
Class<*>! The class of the mismatched argument

getConversion

Added in API level 1
open fun getConversion(): Char

Returns the inapplicable conversion.

Return
Char The inapplicable conversion

Properties

message

Added in API level 1
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).