Skip to content

Most visited

Recently visited

navigation
Added in API level 1

IllegalFormatConversionException

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


An IllegalFormatConversionException will be thrown when the parameter is incompatible with the corresponding format specifier.

See also:

Summary

Public constructors

IllegalFormatConversionException(char c, Class<?> arg)

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

Public methods

Class<?> getArgumentClass()

Returns the class of the mismatched parameter.

char getConversion()

Returns the incompatible conversion.

String getMessage()

Returns the detail message which was provided when this Throwable was created.

Inherited methods

From class java.lang.Throwable
From class java.lang.Object

Public constructors

IllegalFormatConversionException

Added in API level 1
IllegalFormatConversionException (char c, 
                Class<?> arg)

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

Parameters
c char: the class of the mismatched conversion.
arg Class: the corresponding parameter.

Public methods

getArgumentClass

Added in API level 1
Class<?> getArgumentClass ()

Returns the class of the mismatched parameter.

Returns
Class<?> the class of the mismatched parameter.

getConversion

Added in API level 1
char getConversion ()

Returns the incompatible conversion.

Returns
char the incompatible conversion.

getMessage

Added in API level 1
String getMessage ()

Returns the detail message which was provided when this Throwable was created. Returns null if no message was provided at creation time.

Returns
String
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.