java.util
Class DuplicateFormatFlagsException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalArgumentException
java.util.IllegalFormatException
java.util.DuplicateFormatFlagsException
- All Implemented Interfaces:
- Serializable
public class DuplicateFormatFlagsException
- extends IllegalFormatException
Thrown when the flags supplied to the Formatter#format()
method of a Formatter
contain duplicates.
- Since:
- 1.5
- See Also:
- Serialized Form
Constructor Summary |
DuplicateFormatFlagsException(String flags)
Constructs a new DuplicateFormatFlagsException
which specifies that the supplied set of flags contains a
duplicate. |
Method Summary |
String |
getFlags()
Returns the flags which contain a duplicate. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
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.
getFlags
public String getFlags()
- Returns the flags which contain a duplicate.
- Returns:
- the flags.