java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalArgumentException
java.util.IllegalFormatException
- 所有已实现的接口:
-
Serializable
- 直接已知的子类:
-
DuplicateFormatFlagsException
,FormatFlagsConversionMismatchException
,IllegalFormatCodePointException
,IllegalFormatConversionException
,IllegalFormatFlagsException
,IllegalFormatPrecisionException
,IllegalFormatWidthException
,MissingFormatArgumentException
,MissingFormatWidthException
,UnknownFormatConversionException
,UnknownFormatFlagsException
public sealed class IllegalFormatException extends IllegalArgumentException permits DuplicateFormatFlagsException, FormatFlagsConversionMismatchException, IllegalFormatCodePointException, IllegalFormatConversionException, IllegalFormatFlagsException, IllegalFormatPrecisionException, IllegalFormatWidthException, MissingFormatArgumentException, MissingFormatWidthException, UnknownFormatConversionException, UnknownFormatFlagsException (not exhaustive)
当格式字符串包含非法语法或与给定参数不兼容的格式说明符时抛出的未经检查的异常。只有与特定错误对应的此异常的显式子类型应该被实例化。
- 自从:
- 1.5
- 参见:
-
Method Summary
Methods declared in class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString