les08 except whylearnit





Handling Exceptions

















The interactions in this eCourse require Javascript to be enabled.






 
Handling Exceptions



previous|next





You have seen Sheila write PL/SQL blocks with a declarative section (beginning with the keyword
DECLARE) and an executable section (beginning and ending with the keywords BEGIN and
END, respectively). For exception handling, you can include another optional section called the exception section. This section begins with the keyword EXCEPTION. If present, this is the
last section in a PL/SQL block.

An exception is an error in PL/SQL that is raised during the execution of a block. A block always terminates when PL/SQL raises an exception, but you can specify an exception handler to perform final actions before the block ends.
When the exception is
raised, the control shifts to the exception section and all the statements in the exception
section are executed. The PL/SQL block terminates with normal, successful completion.
This enables you to provide the user with a customized, informative message if an error is encountered.









 







Wyszukiwarka

Podobne podstrony:
les08 pack whylearnit
les08 except showme
les08 plsql whylearnit
les08 except tellme1
les08 except tellme3
les08 except tellme2
les08 use triggers whylearnit
les08 proc cre whylearnit
ExceptionDetailMessage
les08 man triggers tellme
whylearnit
les07 vs whylearnit
rmi exceptions5
les08 pack tellme1
les08 func cre tellme1
function java last exception clear

więcej podobnych podstron