## Uses of Class
java.util.IllegalFormatException

- Packages that use IllegalFormatException
  Package | Description
  --- | ---
  java.util | Contains the collections framework, legacy collection classes, event model, date and time facilities, internationalization, and miscellaneous utility classes (a string tokenizer, a random-number generator, and a bit array).

- - ### Uses of IllegalFormatException in java.util

    Subclasses of IllegalFormatException in java.util
    Modifier and Type | Class | Description
    --- | --- | ---
    `class` | `DuplicateFormatFlagsException` Unchecked exception thrown when duplicate flags are provided in the format specifier.
    `class` | `FormatFlagsConversionMismatchException` Unchecked exception thrown when a conversion and flag are incompatible.
    `class` | `IllegalFormatCodePointException` Unchecked exception thrown when a character with an invalid Unicode code point as defined by `Character.isValidCodePoint(int)` is passed to the `Formatter`.
    `class` | `IllegalFormatConversionException` Unchecked exception thrown when the argument corresponding to the format specifier is of an incompatible type.
    `class` | `IllegalFormatFlagsException` Unchecked exception thrown when an illegal combination flags is given.
    `class` | `IllegalFormatPrecisionException` Unchecked exception thrown when the precision is a negative value other than `-1`, the conversion does not support a precision, or the value is otherwise unsupported.
    `class` | `IllegalFormatWidthException` Unchecked exception thrown when the format width is a negative value other than `-1` or is otherwise unsupported.
    `class` | `MissingFormatArgumentException` Unchecked exception thrown when there is a format specifier which does not have a corresponding argument or if an argument index refers to an argument that does not exist.
    `class` | `MissingFormatWidthException` Unchecked exception thrown when the format width is required.
    `class` | `UnknownFormatConversionException` Unchecked exception thrown when an unknown conversion is given.
    `class` | `UnknownFormatFlagsException` Unchecked exception thrown when an unknown flag is given.

Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2026, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.