Exceptions Raised in Declarations Assignment Help

Assignment Help: >> Exceptions - Exceptions Raised in Declarations

Exceptions Raised in Declarations:

Exceptions can be raised in declarations via faulty initialization expressions. For instance, the following declaration raises an exception since the constant limit cannot store numbers larger than 999:

DECLARE

limit CONSTANT NUMBER(3) := 5000;     -- raises an exception

BEGIN

...

EXCEPTION                

WHEN OTHERS THEN ...                                          -- cannot catch the exception

The Handlers in the current block cannot catch the raised exception since an exception raised in a declaration propagates instantly to the enclosing block.:

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd