Raise an exception

If a DataBlade® API module detects an error, it can use the mi_db_error_raise() function to raise an exception.

In a C UDR, the mi_db_error_raise() function raises an exception to the database server.

In a client LIBMI application, the mi_db_error_raise() function sends the exception over to the database server.

When the mi_db_error_raise() function raises an exception, the database server handles this exception in the same way it would if a database server exception occurred in a DataBlade API function. If the DataBlade API module has registered an exception callback, this call to mi_db_error_raise() invokes the exception callback. If no exception callback has been registered, the DataBlade API uses the default behavior for the handling of exceptions.