Package java.util
Class MissingFormatWidthException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalArgumentException
java.util.IllegalFormatException
java.util.MissingFormatWidthException
- All Implemented Interfaces:
Serializable
public class MissingFormatWidthException extends IllegalFormatException
A
MissingFormatWidthException will be thrown if the format width is
missing but is required.- See Also:
RuntimeException, Serialized Form
-
Constructor Summary
Constructors Constructor Description MissingFormatWidthException(String s)Constructs a newMissingFormatWidthExceptionwith the specified format specifier. -
Method Summary
Modifier and Type Method Description StringgetFormatSpecifier()Returns the format specifier associated with the exception.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
-
MissingFormatWidthException
Constructs a newMissingFormatWidthExceptionwith the specified format specifier.- Parameters:
s- the specified format specifier.
-
-
Method Details
-
getFormatSpecifier
Returns the format specifier associated with the exception.- Returns:
- the format specifier associated with the exception.
-
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
-