IllegalFormatConversionException - JRE Emulation | JRE Emulation
public class

IllegalFormatConversionException

extends IllegalFormatException
java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ java.lang.RuntimeException
         ↳ java.lang.IllegalArgumentException
           ↳ java.util.IllegalFormatException
             ↳ java.util.IllegalFormatConversionException

Class Overview

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(char c, Class<?> arg)
Constructs an instance of this class with the mismatched conversion and the corresponding argument class.
Public Methods
Class<?> getArgumentClass()
Returns the class of the mismatched argument.
char getConversion()
Returns the inapplicable conversion.
String getMessage()
Inherited Methods
[Expand]
From class java.lang.Throwable
From class java.lang.Object

Public Constructors

public IllegalFormatConversionException (char c, Class<?> arg)

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

Parameters
c Inapplicable conversion
arg Class of the mismatched argument

Public Methods

public Class<?> getArgumentClass ()

Returns the class of the mismatched argument.

Returns
  • The class of the mismatched argument

public char getConversion ()

Returns the inapplicable conversion.

Returns
  • The inapplicable conversion

public String getMessage ()