plik


Handling Exceptions The interactions in this eCourse require Javascript to be enabled.   Handling Exceptions: Part 1 previous|next 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. Methods for Raising an Exception An Oracle error occurs and the associated exception is raised automatically. For example, if the error ORA-01403 occurs when no rows are retrieved from the database in a SELECT statement, then PL/SQL raises the exception NO_DATA_FOUND. These errors are converted into predefined exceptions. Depending on the business functionality your program is implementing, you may have to explicitly raise an exception. You raise an exception explicitly by issuing the RAISE statement within the block. The exception being raised may be either userdefined or predefined. There are some nonpredefined Oracle errors. These errors are any standard Oracle errors that are not predefined. You can explicitly declare exceptions and associate them with the nonpredefined Oracle errors.          

Wyszukiwarka

Podobne podstrony:
les08 except tellme3
les08 except tellme2
les08 pack tellme1
les08 except showme
les08 except whylearnit
les08 man triggers tellme
les08 func cre tellme1
les08 func cre tellme2
les08 pack spec tellme
les08 cre block1 tellme
les08 cre block2 tellme
les08 audit trigger1 tellme
les08 proc cre tellme2
les08 cre anonymous1 tellme
les08 cre triggers tellme
les08 proc cre tellme1
les08 cre dmltriggers1 tellme
les08 pack body tellme
ExceptionDetailMessage

więcej podobnych podstron