Android
java.util
public class

java.util.IllegalFormatConversionException

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

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.
Methods inherited from class java.lang.Throwable
Methods inherited from class java.lang.Object

Details

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.
Copyright 2007 Google Inc. Build 0.9_r1-98467 - 14 Aug 2008 18:56