How to we use Raise_application_error(Oracle PL/SQL)?

How to we use Raise_application_error(Oracle PL/SQL)?
DECLARE
a NUMBER;
b VARCHAR2(10);
BEGIN
IF a > b THEN
Raise_application_error('A sal is greater than b');
END IF;
END;
/

No comments: