Package java.util
Class IllegalFormatFlagsException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalArgumentException
java.util.IllegalFormatException
java.util.IllegalFormatFlagsException
- All Implemented Interfaces:
Serializable
public class IllegalFormatFlagsException extends IllegalFormatException implements Serializable
An
IllegalFormatFlagsException will be thrown if the combination of
the format flags is illegal.- See Also:
RuntimeException, Serialized Form
-
Constructor Summary
Constructors Constructor Description IllegalFormatFlagsException(String flags)Constructs a newIllegalFormatFlagsExceptionwith the specified flags. -
Method Summary
Modifier and Type Method Description StringgetFlags()Returns the flags that are illegal.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
-
IllegalFormatFlagsException
Constructs a newIllegalFormatFlagsExceptionwith the specified flags.- Parameters:
flags- the specified flags.
-
-
Method Details
-
getFlags
Returns the flags that are illegal.- Returns:
- the flags that are illegal.
-
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
-