加载中...
The Wayback Machine - https://sup1a9wrlpyh5li9ro.vcoronado.top/web/20090218033521/http://developer.android.com:80/reference/java/util/IllegalFormatConversionException.html
public class

IllegalFormatConversionException

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

Class Overview

The unchecked exception will be thrown out when the parameter is incompatible with the corresponding format specifier.

Summary

Public Constructors
IllegalFormatConversionException(char c, Class<?> arg)
Constructs an IllegalFormatConversionException with the class of the mismatched conversion and corresponding parameter.
Public Methods
Class<?> getArgumentClass()
Return the class of the mismatched parameter.
char getConversion()
Return the incompatible conversion.
String getMessage()
Return the message string of the IllegalFormatConversionException.
[Expand]
Inherited Methods
From class java.lang.Throwable
From class java.lang.Object

Public Constructors

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

Constructs an IllegalFormatConversionException with the class of the mismatched conversion and corresponding parameter.

Parameters
c The class of the mismatched conversion.
arg The corresponding parameter.

Public Methods

public Class<?> getArgumentClass ()

Return the class of the mismatched parameter.

Returns
  • The class of the mismatched parameter.

public char getConversion ()

Return the incompatible conversion.

Returns
  • The incompatible conversion.

public String getMessage ()

Return the message string of the IllegalFormatConversionException.

Returns
  • The message string of the IllegalFormatConversionException.