Package java.util

Class IllegalFormatConversionException

All Implemented Interfaces:
Serializable

public class IllegalFormatConversionException
extends IllegalFormatException
implements Serializable
An IllegalFormatConversionException will be thrown when the parameter is incompatible with the corresponding format specifier.
Since:
1.5
See Also:
RuntimeException, Serialized Form
  • Constructor Details

    • IllegalFormatConversionException

      public IllegalFormatConversionException​(char c, Class<?> arg)
      Constructs a new IllegalFormatConversionException with the class of the mismatched conversion and corresponding parameter.
      Parameters:
      c - the class of the mismatched conversion.
      arg - the corresponding parameter.
  • Method Details

    • getArgumentClass

      public Class<?> getArgumentClass()
      Returns the class of the mismatched parameter.
      Returns:
      the class of the mismatched parameter.
    • getConversion

      public char getConversion()
      Returns the incompatible conversion.
      Returns:
      the incompatible conversion.
    • getMessage

      public String getMessage()
      Description copied from class: Throwable
      Returns the detail message which was provided when this Throwable was created. Returns null if no message was provided at creation time.
      Overrides:
      getMessage in class Throwable