UserDefinedExcep

UserDefinedExcep - C := B / A DBMS_OUTPUT.PUT_LINE('C IS: '...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Sheet1 Page 1 /* USER DEFINED EXCEPTION */ DECLARE A INT B INT C INT OUR_DIV_OF_SOMETHING_BY_ZERO EXCEPTION BEGIN A := 0 B := 2 IF A = 0 THEN RAISE OUR_DIV_OF_SOMETHING_BY_ZERO END IF
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: C := B / A DBMS_OUTPUT.PUT_LINE('C IS: ' || C) EXCEPTION WHEN OUR_DIV_OF_SOMETHING_BY_ZERO THEN DBMS_OUTPUT.PUT_LINE('HEY, A DIVISION BY ZERO!') END...
View Full Document

This note was uploaded on 07/15/2011 for the course ECO 2023 taught by Professor Mr.raza during the Summer '10 term at FAU.

Ask a homework question - tutors are online