java.util
Class MissingFormatArgumentException

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

public class MissingFormatArgumentException
extends IllegalFormatException

Thrown when the a format specification for a Formatter refers to an argument that is non-existent, or an argument index references a non-existent argument.

Since:
1.5
See Also:
Serialized Form

Constructor Summary
MissingFormatArgumentException(String s)
          Constructs a new MissingFormatArgumentException for a format specification, s, which refers to a non-existent argument.
 
Method Summary
 String getFormatSpecifier()
          Returns the format specification.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MissingFormatArgumentException

public MissingFormatArgumentException(String s)
Constructs a new MissingFormatArgumentException for a format specification, s, which refers to a non-existent argument.

Parameters:
s - the format specification.
Throws:
NullPointerException - if s is null.
Method Detail

getFormatSpecifier

public String getFormatSpecifier()
Returns the format specification.

Returns:
the format specification.