borland Packages Class Hierarchy jbcl.dataset Package Index
ValidationException class
java.lang.Object
+----java.lang.Throwable
+----java.lang.Exception
+----borland.jbcl.dataset.DataSetException
+----borland.jbcl.dataset.ValidationException
About the ValidationException class
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.
ValidationException variables
Variables implemented in this class
ValidationException constructors
ValidationException properties
*Read-only properties **Write-only properties
Properties implemented in this class
ValidationException methods
Methods implemented in this class
- addExceptionListener(borland.jbcl.dataset.ExceptionListener)
- badProcedureProperties()
- badQueryProperties()
- classNotFoundException(java.lang.ClassNotFoundException)
- connectionDescriptorNotSet()
- connectionNotClosed(java.lang.Exception)
- dataSetHasNoTable()
- dataSetNotOpen()
- driverNotLoadedAtRuntime(java.lang.String)
- driverNotLoadedInDesign(java.lang.String)
- handleException(borland.jbcl.dataset.DataSet, java.awt.Component, java.lang.Exception)
- handleException(borland.jbcl.dataset.DataSet, java.awt.Component, java.lang.Exception, boolean)
- handleException(java.awt.Component, java.lang.Exception, boolean)
- handleException(java.lang.Exception)
- handleException(java.lang.Exception, boolean)
- insufficientRowId()
- invalidColumnType(int)
- invalidSQLType(int)
- IOException(java.io.IOException)
- mismatchedParameterFormat()
- mismatchParamResult()
- missingMasterDataSet()
- mkUrlNotFound(java.lang.String, java.lang.Exception)
- mkUrlNotFoundInDesign(java.lang.String, java.lang.Exception)
- multipleRowsAffected(java.lang.String)
- needProcedureProvider()
- needQueryProvider()
- noDatabaseOnResolver()
- nonExistentRowId()
- noResultSet()
- noRowsAffected(java.lang.String)
- notDatabaseResolver()
- notSelectQuery()
- notSortable()
- noUpdatableColumns()
- noWhereClause(borland.jbcl.dataset.DataSet)
- onePassInputStream(borland.jbcl.dataset.Column)
- parameterCountMismatch()
- printStackTrace()
- printStackTrace(java.io.PrintStream)
- procedureFailed(java.lang.Exception)
- procedureInProcess()
- providerFailed(java.lang.Exception)
- providerOwned()
- queryFailed(java.lang.Exception)
- readOnlyStore(java.lang.String)
- removeExceptionListener(borland.jbcl.dataset.ExceptionListener)
- resolveFailed(java.lang.Exception)
- SQLException(java.sql.SQLException)
- throwException(int, java.lang.Exception)
- throwExceptionChain(java.lang.Exception)
- throwQueryInProcess()
- throwQueryNotExecuted()
- throwTransactionIsolationLevelNotSupported()
- throwWrongDatabase()
- unexpectedEndOfQuery()
- unknownColumnName(java.lang.String)
- unknownDetailName(java.lang.String)
- unknownParamName(java.lang.String)
- unrecognizedDataType()
ValidationException variables
APPLICATION_ERROR
public static final int APPLICATION_ERROR = BASE+12
Application error caused by an Exception in a application event handler.
CANNOT_DITTO_EXISTING
public static final int CANNOT_DITTO_EXISTING = BASE+10
Cannot ditto into an existing row. By default, you cannot ditto over an existing row; you must insert an empty row and ditto into it.
CANNOT_ORPHAN_DETAILS
public static final int CANNOT_ORPHAN_DETAILS = BASE+3
Master rows that have detail rows linked to them cannot be deleted or have their linking columns modified.
DELETE_NOT_ALLOWED
public static final int DELETE_NOT_ALLOWED = BASE+16
Row deleting not allowed.
GREATER_THAN_MAX
public static final int GREATER_THAN_MAX = BASE+8
The value entered for a Column is greater than the Column component's max property.
INSERT_NOT_ALLOWED
public static final int INSERT_NOT_ALLOWED = BASE+14
Row insertion not allowed
INVALID_COLUMN_VALUE
public static final int INVALID_COLUMN_VALUE = BASE+4
Application-defined validation failed in a ColumnChangeListener.validate() event handler.
INVALID_FORMAT
public static final int INVALID_FORMAT = BASE+11
Cannot parse value; generic format error.
INVALID_PRECISION
public static final int INVALID_PRECISION = BASE+9
String values for this Column can not exceed the precision length.
INVALID_ROW_VALUES
public static final int INVALID_ROW_VALUES = BASE+5
The row cannot be posted due to missing or invalid field values.
LESS_THAN_MIN
public static final int LESS_THAN_MIN = BASE+7
The value entered for the Column is less than the Column component's min property.
NO_ROWS_TO_DELETE
public static final int NO_ROWS_TO_DELETE = BASE+13
No Rows to delete.
READ_ONLY_COLUMN
public static final int READ_ONLY_COLUMN = BASE+1
Attempting to assign a value to a readonly column.
READ_ONLY_DATASET
public static final int READ_ONLY_DATASET = BASE+2
Attempting to assign a value to a readonly DataSet.
UPDATE_NOT_ALLOWED
public static final int UPDATE_NOT_ALLOWED = BASE+15
Row editing not allowed.
ValidationException constructors
ValidationException(int, java.lang.String, borland.jbcl.dataset.Column)
public ValidationException(int errorCode, java.lang.String error, borland.jbcl.dataset.Column column)
ValidationException(int, java.lang.String, borland.jbcl.dataset.Column, java.lang.Exception)
public ValidationException(int errorCode, java.lang.String error, borland.jbcl.dataset.Column column, java.lang.Exception ex)
ValidationException properties
errorColumn
public final Column getErrorColumn()
Returns the offending Column for this error. Returns null if it is a row level error.
ValidationException methods
invalidFormat(java.lang.Exception, java.lang.String, java.lang.String)
public static final void invalidFormat(java.lang.Exception ex, java.lang.String columnName, java.lang.String message)