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
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. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
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.
getFormatSpecifier
public String getFormatSpecifier()
- Returns the format specification.
- Returns:
- the format specification.