Most visited

Recently visited

Added in API level 1

MissingFormatArgumentException

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 。

Summary

Public constructors

MissingFormatArgumentException(String s)

使用不匹配的格式说明符构造此类的一个实例。

Public methods

String getFormatSpecifier()

返回不匹配的格式说明符。

String getMessage()

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

Inherited methods

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

Public constructors

MissingFormatArgumentException

Added in API level 1
MissingFormatArgumentException (String s)

使用不匹配的格式说明符构造此类的一个实例。

Parameters
s String: Format specifier which does not have a corresponding argument

Public methods

getFormatSpecifier

Added in API level 1
String getFormatSpecifier ()

返回不匹配的格式说明符。

Returns
String The unmatched format specifier

getMessage

Added in API level 1
String getMessage ()

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

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

Hooray!