public class MissingFormatArgumentException
extends IllegalFormatException
| java.lang.Object | ||||||
| java.lang.Throwable | ||||||
| java.lang.Exception | ||||||
| java.lang.RuntimeException | ||||||
| java.lang.IllegalArgumentException | ||||||
| java.util.IllegalFormatException | ||||||
| java.util.MissingFormatArgumentException | ||||||
当存在没有相应参数的格式说明符或者参数索引引用不存在的参数时抛出未经检查的异常。
除非另有说明,否则将 null参数传递给 此类中的任何方法或构造函数将导致引发 NullPointerException 。
Public constructors |
|
|---|---|
MissingFormatArgumentException(String s) 使用不匹配的格式说明符构造此类的一个实例。 |
|
公共方法(Public methods) |
|
|---|---|
String |
getFormatSpecifier() 返回不匹配的格式说明符。 |
String |
getMessage() 返回此throwable的详细消息字符串。 |
继承方法(Inherited methods) |
|
|---|---|
java.lang.Throwable
|
|
java.lang.Object
|
|
MissingFormatArgumentException (String s)
使用不匹配的格式说明符构造此类的一个实例。
| 参数(Parameters) | |
|---|---|
s |
String: Format specifier which does not have a corresponding argument |
String getFormatSpecifier ()
返回不匹配的格式说明符。
| 返回(Returns) | |
|---|---|
String |
The unmatched format specifier |
String getMessage ()
返回此throwable的详细消息字符串。
| 返回(Returns) | |
|---|---|
String |
the detail message string of this Throwable instance (which may be null). |