java.util
Class IllegalFormatWidthException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended byjava.lang.IllegalArgumentException
                  extended byjava.util.IllegalFormatException
                      extended byjava.util.IllegalFormatWidthException
All Implemented Interfaces:
Serializable

public class IllegalFormatWidthException
extends IllegalFormatException

The unchecked exception will be thrown out when the width is a negative other than -1, or the conversion does not support a width or other cases when the width is not supported.

See Also:
Serialized Form

Constructor Summary
IllegalFormatWidthException(int w)
          Constructs a IllegalFormatWidthException with specified width.
 
Method Summary
 java.lang.String getMessage()
          Returns the message of the exception.
 int getWidth()
          Returns the width associated with the exception.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IllegalFormatWidthException

public IllegalFormatWidthException(int w)
Constructs a IllegalFormatWidthException with specified width.

Parameters:
w - The width.
Method Detail

getWidth

public int getWidth()
Returns the width associated with the exception.

Returns:
the width.

getMessage

public java.lang.String getMessage()
Returns the message of the exception.

Overrides:
getMessage in class Throwable
Returns:
The message of the exception.