public class FormatFlagsConversionMismatchException
extends IllegalFormatException
| java.lang.Object | ||||||
| ↳ | java.lang.Throwable | |||||
| ↳ | java.lang.Exception | |||||
| ↳ | java.lang.RuntimeException | |||||
| ↳ | java.lang.IllegalArgumentException | |||||
| ↳ | java.util.IllegalFormatException | |||||
| ↳ | java.util.FormatFlagsConversionMismatchException | |||||
转换和标志不兼容时抛出未经检查的异常。
除非另有说明,否则将 null参数传递给 此类中的任何方法或构造函数将导致引发 NullPointerException 。
Public constructors |
|
|---|---|
FormatFlagsConversionMismatchException(String f, char c) 用指定的标志和转换构造这个类的一个实例。 |
|
Public methods |
|
|---|---|
char |
getConversion() 返回不兼容的转换。 |
String |
getFlags() 返回不兼容的标志。 |
String |
getMessage() 返回此throwable的详细消息字符串。 |
Inherited methods |
|
|---|---|
java.lang.Throwable
|
|
java.lang.Object
|
|
FormatFlagsConversionMismatchException (String f, char c)
用指定的标志和转换构造这个类的一个实例。
| Parameters | |
|---|---|
f |
String: The flag |
c |
char: The conversion |
String getMessage ()
返回此throwable的详细消息字符串。
| Returns | |
|---|---|
String |
the detail message string of this Throwable instance (which may be null). |