borland Packages Class Hierarchy dx.dataset Package
java.lang.Object +----java.lang.Throwable +----java.lang.Exception +----com.borland.dx.dataset.DataSetException +----com.borland.dx.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 DELETE_NOT_ALLOWED = BASE+16Row deleting not allowed.
public static final int DUPLICATE_KEY = BASE+17The key value is a duplicate.
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 INSERT_NOT_ALLOWED = BASE+14Row insertion not allowed.
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 or generic format error.
public static final int INVALID_PRECISION = BASE+9String values for this column can not exceed the precision length set in the Column.precision property. This property can be implicitly set when data is retrieved from a provider. If data is being provided from a JDBC driver, the precision specified by the JDBC result set will be propagated to the Column.precision property. This propagation can be overridden by explicitly setting the Column.precision property.
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 NO_ROWS_TO_DELETE = BASE+13No rows to delete.
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 static final int UPDATE_NOT_ALLOWED = BASE+15Row editing not allowed.
public ValidationException(int errorCode, String error, Column column)Constructs a ValidationException object that contains the error code, the error that occurred, and the Column in which it occurred.
public ValidationException(int errorCode, String error, Column column, Exception ex)Constructs a ValidationException object that contains the error code, the error that occurred, the Column in which it occurred, and the exception.
public final Column getErrorColumn()Returns the offending Column for this error. Returns null if it is a row level error.
public static final void duplicateKey(StorageDataSet dataSet, SortDescriptor descriptor)Cannot parse value or generic format error. Throws a ValidationException of DUPLICATE_KEY.
public static final void invalidFormat(Exception ex, String columnName, String message)Cannot parse value or generic format error. If message is null, throws a ValidationException of INVALID_FORMAT. If message is not null, returns the offending column for this error, or returns null if it is a row level error.