Most visited

Recently visited

Added in API level 1

MissingFormatWidthException

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

摘要(Summary)

Public constructors

MissingFormatWidthException(String s)

用指定的格式说明符构造此类的一个实例。

公共方法(Public methods)

String getFormatSpecifier()

返回没有宽度的格式说明符。

String getMessage()

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

继承方法(Inherited methods)

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

Public constructors

MissingFormatWidthException

Added in API level 1
MissingFormatWidthException (String s)

用指定的格式说明符构造此类的一个实例。

参数(Parameters)
s String: The format specifier which does not have a width

公共方法(Public methods)

getFormatSpecifier

Added in API level 1
String getFormatSpecifier ()

返回没有宽度的格式说明符。

返回(Returns)
String The format specifier which does not have a width

getMessage

Added in API level 1
String getMessage ()

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

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

Hooray!