java.util
Class IllegalFormatWidthException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalArgumentException
java.util.IllegalFormatException
java.util.IllegalFormatWidthException
- All Implemented Interfaces:
- Serializable
public class IllegalFormatWidthException
- extends IllegalFormatException
Thrown when the specified width for a Formatter
argument is illegal. This may be because the number is
a negative number (other than -1) or for some other reason.
- Since:
- 1.5
- See Also:
- Serialized Form
Method Summary |
int |
getWidth()
Returns the illegal width. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
IllegalFormatWidthException
public IllegalFormatWidthException(int w)
- Constructs a new
IllegalFormatWidthException
with the specified width, w
.
- Parameters:
w
- the illegal width.
getWidth
public int getWidth()
- Returns the illegal width.
- Returns:
- the illegal width.