Exception Handling Flashcards

1
Q

User defined exceptions

A

Apart from system exception we can define exceptions based on business rules

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Steps to follow to use user defined exceptions

A

Explicitly declared in declaration section

Explicitly raised in the execution section using Raise or DBMS_STANDARD.RAISE_APPLICATION ERROR (built in proc in oracle) displays error message and number

When using google this transactions not committed are rolled back within the block
Raises and exception but doesn’t handle it

Handled by referencing the user defined exception name in the Exception section

How well did you know this?
1
Not at all
2
3
4
5
Perfectly