Top Description Fields Constructors Methods
java.util

public non-sealed Class DuplicateFormatFlagsException

extends IllegalFormatException
Class Inheritance

Unchecked exception thrown when duplicate flags are provided in the format specifier.

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
private static final long

Constructor Summary

AccessConstructor and Description
public
DuplicateFormatFlagsException(String
The set of format flags which contain a duplicate flag.
f
)

Constructs an instance of this class with the specified flags.

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

The flags
getFlags
()

Returns the set of flags which contains a duplicate flag.

public String
getMessage()

Overrides java.lang.Throwable.getMessage.

Returns the detail message string of this throwable.

Field Detail

flagsback to summary
private String flags
serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.util.IllegalFormatException.serialVersionUID.

Annotations
@Serial

Constructor Detail

DuplicateFormatFlagsExceptionback to summary
public DuplicateFormatFlagsException(String f)

Constructs an instance of this class with the specified flags.

Parameters
f:String

The set of format flags which contain a duplicate flag.

Method Detail

getFlagsback to summary
public String getFlags()

Returns the set of flags which contains a duplicate flag.

Returns:String

The flags

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.

Returns:String

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