Try OpenEdge Now
skip to main content
Java Open Clients
Using SmartDataObjects from Java Clients : Errors and exceptions : Typical errors by method category
 

Typical errors by method category

Calling the following categories of methods can result in a corresponding set of errors:
*Navigation methods — The typical errors in this category include attempts to navigate to rows that do not exist. If the row has been deleted, this error throws the DeletedRowAccessException.
*Insert, delete, and update row methods — The typical errors in this category include:
*Concurrency control errors (the row was updated by another user, for example)
*Validation errors (the update was rejected by some AppServer validation routine)
*Trying to update a row while the cursor is not in an appropriate position (for example, calling insertRow() while the cursor is not in an insert row position)
The first two types of errors throw the SDOModificationException.
*Get and update column value methods — The typical errors in this category include:
*Trying to convert a value to the wrong data type (for example, trying to get an integer column using a getDate() method)
*Trying to update a column with the wrong data type (for example, trying to set a date object to an integer column)
*Trying to get or set data when the cursor does not point to a valid row
*Meta data methods — The typical errors in this category occur when trying to get meta data information about a column that does not exist.