PL/SQL Exceptions Propagation during Variable Declaration

Comments 0

Share to social media

It’s always good to know how any language handles and propagates exceptions, Oracle PL/SQL being no different. They’re plenty of examples online about raising and handling exceptions on the web, but one thing you may not have realized is how PL/SQL propagates exceptions that occur in the variable declaration section of a procedure.

In the first example I created a procedure that has a variable, l_var, which can handle one character. As expected, when I assign more then one character an exception is raised and is propagated to the EXCEPTION block of the procedure.

Continue reading on my blog for the next example…

Load comments

About the author

Martin Giffy DSouza's contributions