Professional Documents
Culture Documents
Exp - 6
Exp - 6
4. Theory:
An exception is an error condition during a program execution. PL/SQL supports programmers to catch
such conditions using EXCEPTION block in the program and an appropriate action is taken against the
error condition. There are two types of exceptions −
• System-defined exceptions
• User-defined exceptions
Using exceptions for error handling has several advantages. Without exception handling, every time you issue a
command, you must check for execution errors:
Error processing is not clearly separated from normal processing; nor is it robust. If you neglect to code a check, the
error goes undetected and is likely to cause other, seemingly unrelated errors.
5. OUTPUT:
6. Grid (To be created as per the SOP and Assessment guidelines by the faculty):