public class IllegalFormatWidthException
extends IllegalFormatException
| java.lang.Object | ||||||
| java.lang.Throwable | ||||||
| java.lang.Exception | ||||||
| java.lang.RuntimeException | ||||||
| java.lang.IllegalArgumentException | ||||||
| java.util.IllegalFormatException | ||||||
| java.util.IllegalFormatWidthException | ||||||
如果格式宽度为负值而非 -1或者不受支持,则抛出未经检查的异常。
Public constructors |
|
|---|---|
IllegalFormatWidthException(int w) 用指定的宽度构造此类的一个实例。 |
|
公共方法(Public methods) |
|
|---|---|
String |
getMessage() 返回此throwable的详细消息字符串。 |
int |
getWidth() 返回宽度 |
继承方法(Inherited methods) |
|
|---|---|
java.lang.Throwable
|
|
java.lang.Object
|
|
IllegalFormatWidthException (int w)
用指定的宽度构造此类的一个实例。
| 参数(Parameters) | |
|---|---|
w |
int: The width |
String getMessage ()
返回此throwable的详细消息字符串。
| 返回(Returns) | |
|---|---|
String |
the detail message string of this Throwable instance (which may be null). |