borland.jbcl Packages borland.jbcl Class Hierarchy borland.jbcl.dataset
java.lang.Object +----java.lang.Throwable +----java.lang.Exception +----borland.jbcl.dataset.DataSetException +----borland.jbcl.dataset.ValidationException
Variables Constructors Properties Methods
Implements ChainedException, Serializable
The ValidationException class is a subclass of DataSetException and is used heavily by the dataset package for Column and row-level validation errors that occur when posting changed or new row(s) of data.
public static final int APPLICATION_ERROR = BASE+12Application error caused by an Exception in a application event handler.
public static final int CANNOT_DITTO_EXISTING = BASE+10Cannot ditto into an existing row. By default, you cannot ditto over an existing row; you must insert an empty row and ditto into it.
public static final int CANNOT_ORPHAN_DETAILS = BASE+3Master rows that have detail rows linked to them cannot be deleted or have their linking columns modified.
public static final int GREATER_THAN_MAX = BASE+8The value entered for a Column is greater than the Column component's max property.
public static final int INVALID_COLUMN_VALUE = BASE+4Application-defined validation failed in a ColumnChangeListener.validate() event handler.
public static final int INVALID_FORMAT = BASE+11Cannot parse value; generic format error.
public static final int INVALID_PRECISION = BASE+9String values for this Column can not exceed the precision length.
public static final int INVALID_ROW_VALUES = BASE+5The row cannot be posted due to missing or invalid field values.
public static final int LESS_THAN_MIN = BASE+7The value entered for the Column is less than the Column component's min property.
public static final int READ_ONLY_COLUMN = BASE+1Attempting to assign a value to a readonly column.
public static final int READ_ONLY_DATASET = BASE+2Attempting to assign a value to a readonly DataSet.
public ValidationException(int errorCode, java.lang.String error, borland.jbcl.dataset.Column column)
public ValidationException(int errorCode, java.lang.String error, borland.jbcl.dataset.Column column, java.lang.Exception ex)
public final Column getErrorColumn()Returns the offending Column for this error. Returns null if it is a row level error.