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 FormConstructor and Description |
---|
IllegalFormatWidthException(int w)
Constructs a new
IllegalFormatWidthException with specified
width. |
Modifier and Type | Method and Description |
---|---|
String |
getMessage()
Returns the extra information 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, toString
public IllegalFormatWidthException(int w)
IllegalFormatWidthException
with specified
width.w
- the width.public int getWidth()
public String getMessage()
Throwable
Throwable
was created. Returns null
if no message was
provided at creation time.getMessage
in class Throwable
Throwable
's detail message.