public class IllegalFormatWidthException extends IllegalFormatException
IllegalFormatWidthException will be thrown if the width is a
negative value other than -1 or in other cases where a width is not
supported.RuntimeException,
Serialized Form| Constructor and Description |
|---|
IllegalFormatWidthException(int w)
Constructs a new
IllegalFormatWidthException with specified
width. |
| Modifier and Type | Method and Description |
|---|---|
String |
getMessage()
Returns the detail message which was provided when this
Throwable was created. |
int |
getWidth()
Returns the width associated with the exception.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic IllegalFormatWidthException(int w)
IllegalFormatWidthException with specified
width.w - the width.public int getWidth()
public String getMessage()
ThrowableThrowable was created. Returns null if no message was
provided at creation time.getMessage in class Throwable