public class MissingFormatWidthException
extends IllegalFormatException
| java.lang.Object | ||||||
| java.lang.Throwable | ||||||
| java.lang.Exception | ||||||
| java.lang.RuntimeException | ||||||
| java.lang.IllegalArgumentException | ||||||
| java.util.IllegalFormatException | ||||||
| java.util.MissingFormatWidthException | ||||||
当需要格式宽度时引发未经检查的异常。
除非另有说明,否则将 null参数传递给 此类中的anyg方法或构造函数将导致引发 NullPointerException 。
Public constructors |
|
|---|---|
MissingFormatWidthException(String s) 用指定的格式说明符构造此类的一个实例。 |
|
公共方法(Public methods) |
|
|---|---|
String |
getFormatSpecifier() 返回没有宽度的格式说明符。 |
String |
getMessage() 返回此throwable的详细消息字符串。 |
继承方法(Inherited methods) |
|
|---|---|
java.lang.Throwable
|
|
java.lang.Object
|
|
MissingFormatWidthException (String s)
用指定的格式说明符构造此类的一个实例。
| 参数(Parameters) | |
|---|---|
s |
String: The format specifier which does not have a width |
String getFormatSpecifier ()
返回没有宽度的格式说明符。
| 返回(Returns) | |
|---|---|
String |
The format specifier which does not have a width |
String getMessage ()
返回此throwable的详细消息字符串。
| 返回(Returns) | |
|---|---|
String |
the detail message string of this Throwable instance (which may be null). |