Package java.util
Class MissingFormatArgumentException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- java.lang.IllegalArgumentException
-
- java.util.IllegalFormatException
-
- java.util.MissingFormatArgumentException
-
- All Implemented Interfaces:
Serializable
public class MissingFormatArgumentException extends IllegalFormatException
AMissingFormatArgumentExceptionwill be thrown if there is no corresponding argument with the specified conversion or an argument index that refers to a missing argument.- See Also:
RuntimeException, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MissingFormatArgumentException(String s)Constructs a newMissingFormatArgumentExceptionwith the specified conversion that lacks the argument.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetFormatSpecifier()Returns the conversion 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 Detail
-
MissingFormatArgumentException
public MissingFormatArgumentException(String s)
Constructs a newMissingFormatArgumentExceptionwith the specified conversion that lacks the argument.- Parameters:
s- the specified conversion that lacks the argument.
-
-
Method Detail
-
getFormatSpecifier
public String getFormatSpecifier()
Returns the conversion associated with the exception.- Returns:
- the conversion associated with the exception.
-
getMessage
public String 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
-
-