Skip to Main Content

Explore Oracle PL/SQL

Free tips and training every month! Subscribe for reminders and more from Office Hours. FAQ

Header container

May 14

15:00 UTC   Start Times Around the World

Description

Error Management
In the April session, Steven touched on his thoughts regarding where to handle exceptions (briefly: as close as possible to where it was raised). This conflicts with Tom Kyte's position that you should let the exception propagate up to the outermost block and then handle exceptions there. Tom can't speak for himself, but Steven is sure others will chime in.

00:00 Setting the stage
03:15 Tom Says
04:00 Steven Says
05:00 Chris Says
08:15 LiveSQL exploration
11:40 Avoiding redundant entries in error log
13:30 Using conditional compilation to direct output to screen
15:00 Chris says: handle expected exceptions, avoid WHEN OTHERS
17:30 Lots of discussion
29:30 Don’t forget to log the call stack
33:23 Picking a -20NNN error code for raise_application_error
35:29 Utility package by Sven Weller on top of utl_call_stack
38:02 Thoughts on tracing parameter values

Subscribe to give us feedback and be notified of upcoming sessions!

Having trouble watching the video on this page? Open the video in your browser.

Your Experts

Steven Feuerstein
Steven Feuerstein, Developer Advocate for PL/SQL    
Steven Feuerstein leads a team of Developer Advocate at Oracle Corporation, and is obsessed with the Oracle PL/SQL language, having written ten books on it (all published by O'Reilly Media). He's published over 1400 quizzes on PL/SQL at the Oracle Dev Gym.
Chris Saxon
Chris Saxon, Oracle Developer Advocate for SQL    
Chris Saxon is the quizmaster for the Database Design competitions and an Oracle Developer Advocate for SQL. His job is to help you get the best out of the Oracle Database and have fun with SQL! He's also part of the answer team on Ask TOM and creates YouTube videos at The Magic of SQL channel.