java.util
Class MissingFormatArgumentException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended byjava.lang.IllegalArgumentException
                  extended byjava.util.IllegalFormatException
                      extended byjava.util.MissingFormatArgumentException
All Implemented Interfaces:
Serializable

public class MissingFormatArgumentException
extends IllegalFormatException

The unchecked exception will be thrown out if there no corresponding argument with the specified conversion or an argument index that refers to an unexisting argument.

See Also:
Serialized Form

Constructor Summary
MissingFormatArgumentException(java.lang.String s)
          Constructs an MissingFormatArgumentException with the specified conversion that lacks the argument.
 
Method Summary
 java.lang.String getFormatSpecifier()
          Returns the conversion associated with the exception.
 java.lang.String getMessage()
          Returns the message of the exception.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MissingFormatArgumentException

public MissingFormatArgumentException(java.lang.String s)
Constructs an MissingFormatArgumentException with the specified conversion that lacks the argument.

Parameters:
s - The specified conversion that lacks the argument.
Method Detail

getFormatSpecifier

public java.lang.String getFormatSpecifier()
Returns the conversion associated with the exception.

Returns:
The conversion associated with the exception.

getMessage

public java.lang.String getMessage()
Returns the message of the exception.

Overrides:
getMessage in class Throwable
Returns:
The message of the exception.