Package java.util
Class FormatFlagsConversionMismatchException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalArgumentException
java.util.IllegalFormatException
java.util.FormatFlagsConversionMismatchException
- All Implemented Interfaces:
Serializable
public class FormatFlagsConversionMismatchException extends IllegalFormatException implements Serializable
A
FormatFlagsConversionMismatchException will be thrown if a
conversion and the flags are incompatible.- See Also:
RuntimeException, Serialized Form
-
Constructor Summary
Constructors Constructor Description FormatFlagsConversionMismatchException(String f, char c)Constructs a newFormatFlagsConversionMismatchExceptionwith the flags and conversion specified. -
Method Summary
Modifier and Type Method Description chargetConversion()Returns the incompatible conversion.StringgetFlags()Returns the incompatible format 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
-
FormatFlagsConversionMismatchException
Constructs a newFormatFlagsConversionMismatchExceptionwith the flags and conversion specified.- Parameters:
f- the flags.c- the conversion.
-
-
Method Details
-
getFlags
Returns the incompatible format flag.- Returns:
- the incompatible format flag.
-
getConversion
public char getConversion()Returns the incompatible conversion.- Returns:
- the incompatible conversion.
-
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
-