java.util

Class DuplicateFormatFlagsException

public class DuplicateFormatFlagsException extends IllegalFormatException

Thrown when the flags supplied to the {@link Formatter#format()} method of a {@link Formatter} contain duplicates.

Since: 1.5

Constructor Summary
DuplicateFormatFlagsException(String flags)
Constructs a new DuplicateFormatFlagsException which specifies that the supplied set of flags contains a duplicate.
Method Summary
StringgetFlags()
Returns the flags which contain a duplicate.

Constructor Detail

DuplicateFormatFlagsException

public DuplicateFormatFlagsException(String flags)
Constructs a new DuplicateFormatFlagsException which specifies that the supplied set of flags contains a duplicate.

Parameters: flags the flags containing a duplicate.

Throws: NullPointerException if flags is null.

Method Detail

getFlags

public String getFlags()
Returns the flags which contain a duplicate.

Returns: the flags.