PLSQL_Exception_Handling_Interview_Questions
PLSQL_Exception_Handling_Interview_Questions
6. Using RAISE_APPLICATION_ERROR
--------------------------------
DECLARE
v_salary employees.salary%TYPE := 3000;
BEGIN
IF v_salary < 5000 THEN
RAISE_APPLICATION_ERROR(-20001, 'Salary too low! Must be at least 5000.');
END IF;
END;
/