java.util
Class MissingFormatWidthException

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.MissingFormatWidthException
All Implemented Interfaces:
Serializable

public class MissingFormatWidthException
extends IllegalFormatException

Thrown when the a format specification for a Formatter does not include a width for a value where one is required.

Since:
1.5
See Also:
Serialized Form

Constructor Summary
MissingFormatWidthException(String s)
          Constructs a new MissingFormatWidthException for a format specification, s, which excludes a required width 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

MissingFormatWidthException

public MissingFormatWidthException(String s)
Constructs a new MissingFormatWidthException for a format specification, s, which excludes a required width 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.