borland Packages Class Hierarchy dx.text Package
java.lang.Object +----java.lang.Throwable +----java.lang.Exception +----com.borland.dx.text.InvalidFormatException
Constructors Properties Methods
Implements Serializable
The InvalidFormatException class is the Exception class generated by format and parser code exceptions. The InvalidFormatException is thrown for low level parsing conflicts, for example, entering "A" in a numeric field, and is generated when an edited data value is parsed. This is determined by the editMask and displayMask properties of a Column component.
The InvalidFormatException differs from the ValidationException in that the InvalidFormatException can only be triggered when editing is taking place. The ValidationException can be triggered whenever an invalid value is set and doesn't depend on (keystroke) editing of data.
The DataSet class has special knowledge about ValidationException objects and automatically sends them to registered status listeners. Consequently, an InvalidFormatException caused by a parsing error is often turned into a ValidationException, and the DataSet sends it to the status listeners. As a result, you typically only deal with the ValidationException class when editing a field.
public InvalidFormatException(String format)Constructs an InvalidFormatException object that contains the editing error.
public InvalidFormatException(String format, int errorOffset)Constructs an InvalidFormatException object that contains the editing error and the offset of the error.
public int getErrorOffset()Returns the cursor position for this error.
public static final void fire(String string)Throws an InvalidFormatException.