java.util
Class IllegalFormatWidthException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by java.lang.IllegalArgumentException
                  extended by java.util.IllegalFormatException
                      extended by 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

Constructor Summary
IllegalFormatWidthException(int w)
          Constructs a new IllegalFormatWidthException with the specified width, w.
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IllegalFormatWidthException

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

Parameters:
w - the illegal width.
Method Detail

getWidth

public int getWidth()
Returns the illegal width.

Returns:
the illegal width.