APIdia Launch Partner
Top Description Fields Constructors Methods
java.util

public non-sealed Class MissingFormatArgumentException

extends IllegalFormatException
Class Inheritance

Unchecked exception thrown when there is a format specifier which does not have a corresponding argument or if an argument index refers to an argument that does not exist.

Unless otherwise specified, passing a null argument to any method or constructor in this class will cause a NullPointerException to be thrown.

Since
1.5

Field Summary

Modifier and TypeField and Description
private String
s

private static final long

Constructor Summary

AccessConstructor and Description
public
MissingFormatArgumentException(String
Format specifier which does not have a corresponding argument
s
)

Constructs an instance of this class with the unmatched format specifier.

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

The unmatched format specifier
getFormatSpecifier
()

Returns the unmatched format specifier.

public String
getMessage()

Overrides java.lang.Throwable.getMessage.

Returns the detail message string of this throwable.

Field Detail

sback to summary
private String s
serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.util.IllegalFormatException.serialVersionUID.

Annotations
@Serial

Constructor Detail

MissingFormatArgumentExceptionback to summary
public MissingFormatArgumentException(String s)

Constructs an instance of this class with the unmatched format specifier.

Parameters
s:String

Format specifier which does not have a corresponding argument

Method Detail

getFormatSpecifierback to summary
public String getFormatSpecifier()

Returns the unmatched format specifier.

Returns:String

The unmatched format specifier

getMessageback to summary
public String getMessage()

Overrides java.lang.Throwable.getMessage.

Doc from java.lang.Throwable.getMessage.

Returns the detail message string of this throwable.