JDBC Error Codes

Top  Previous 

If the execution of RelDB units are interrupted by an java.sql.SQLException then the error information are copied to the following pool variables.

JDBC_ERROR_CODE

Error Code for the SQLException

JDBC_SQL_STATE

SQLState value of the SQLException Object

You can evaluate the values of these variables as follows.

 

@doif(v:JDBC_ERROR_CODE = '1045')

  ...

@doend()