Most visited

Recently visited

Added in API level 1

IllegalFormatWidthException

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或者不受支持,则抛出未经检查的异常。

摘要(Summary)

Public constructors

IllegalFormatWidthException(int w)

用指定的宽度构造此类的一个实例。

公共方法(Public methods)

String getMessage()

返回此throwable的详细消息字符串。

int getWidth()

返回宽度

继承方法(Inherited methods)

From class java.lang.Throwable
From class java.lang.Object

Public constructors

IllegalFormatWidthException

Added in API level 1
IllegalFormatWidthException (int w)

用指定的宽度构造此类的一个实例。

参数(Parameters)
w int: The width

公共方法(Public methods)

getMessage

Added in API level 1
String getMessage ()

返回此throwable的详细消息字符串。

返回(Returns)
String the detail message string of this Throwable instance (which may be null).

getWidth

Added in API level 1
int getWidth ()

返回宽度

返回(Returns)
int The width

Hooray!