java.util

Class IllegalFormatWidthException

Implemented Interfaces:
Serializable

public class IllegalFormatWidthException
extends IllegalFormatException

Unchecked exception thrown when the format width is a negative value other than -1 or is otherwise unsupported.
Since:
1.5
See Also:
Serialized Form

Constructor Summary

IllegalFormatWidthException(int w)
Constructs an instance of this class with the specified width.

Method Summary

String
getMessage()
int
getWidth()
Returns the 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, extends Object> getClass, finalize, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Details

IllegalFormatWidthException

public IllegalFormatWidthException(int w)
Constructs an instance of this class with the specified width.
Parameters:
w - The width
Usages and Demos :

View More Examples of IllegalFormatWidthException(int w)
   1:     public void assertNoWidth() {
   2:         if (width != -1) throw new IllegalFormatWidthException(width);
   3:     }
   4: 
   5:     public void checkWidth() {

View Full Code Here

Method Details

getMessage

public String getMessage()
Overrides:
getMessage in interface Throwable

getWidth

public int getWidth()
Returns the width
Returns:
The width