Error Handling¶
The driver uses the DataFlex error mechanism to display errors returned by the server. Since every error in DataFlex requires an error number, all errors returned by the server are mapped as DataFlex Error Number 25000 followed by the Server Error Number and Error Text as shown below.
<25000>[Server Error No] <Error Text>
You can look up the description of these error numbers and text in the database server documentation.
DataFlex specific errors, like Find Past end of File or Find Prior to Beginning of File are DataFlex specific behavior and are generated with the usual DataFlex error numbers. Native error messages can be retrieved without the DataFlex error handler by checking the attributes f2s_last_error and f2s_esql_last_error.