Examples WHENEVER and TRY/CATCH usage examples. Example 1: Defining a error handler function Example 2: SQL error handling with WHENEVER Example 3: Typical TRY / CATCH block Example 4: TRY / CATCH in conjunction with WHENEVER Example 5: WHENEVER RAISE exception propagation