Package 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
The unchecked exception will be thrown out if there are duplicate flags given
out in the format specifier.
- See Also:
RuntimeException, Serialized Form
-
Constructor Summary
Constructors Constructor Description DuplicateFormatFlagsException(String f)Constructs a newDuplicateFormatFlagsExceptionwith the flags containing duplicates. -
Method Summary
Modifier and Type Method Description StringgetFlags()Returns the format flags that contain a duplicate flag.StringgetMessage()Returns the detail message which was provided when thisThrowablewas created.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
DuplicateFormatFlagsException
Constructs a newDuplicateFormatFlagsExceptionwith the flags containing duplicates.- Parameters:
f- the format flags that contain a duplicate flag.
-
-
Method Details
-
getFlags
Returns the format flags that contain a duplicate flag.- Returns:
- the format flags that contain a duplicate flag.
-
getMessage
Description copied from class:ThrowableReturns the detail message which was provided when thisThrowablewas created. Returnsnullif no message was provided at creation time.- Overrides:
getMessagein classThrowable
-