Understanding database server exceptions
A database server exception is an unexpected condition that occurs within the database server.
A database server exception can occur in any of the following tasks:
- Within an SQL statement
The mi_exec() and mi_exec_prepared_statement() functions execute SQL statements. An exception can occur when the database server executes an SQL statement.
- Within a UDR
The mi_routine_exec() function executes UDRs through the Fastpath interface. An exception can occur when this UDR executes.
- By the DataBlade®
API function, mi_db_error_raise()
The mi_db_error_raise() function can explicitly raise a database server exception within a DataBlade® API module. For more information, see Raise an exception.
- Within the execution of some other DataBlade®
API function
Other functions in the DataBlade® API might raise exceptions when they execute.
When the database server encounters a database server exception, it raises the MI_Exception event.