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 | |
---|---|
IllegalFormatConversionException(c: Char, arg: Class<*>!) 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? |
Public constructors
IllegalFormatConversionException
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
open fun getArgumentClass(): Class<*>!
Returns the class of the mismatched argument.
Return | |
---|---|
Class<*>! |
The class of the mismatched argument |
getConversion
open fun getConversion(): Char
Returns the inapplicable conversion.
Return | |
---|---|
Char |
The inapplicable conversion |
Properties
message
open val message: String?
Return | |
---|---|
String? |
the detail message string of this Throwable instance (which may be null ). |