PL SQL Programming Oracle PLSQL Tutorial

Before raising a user-defined exception, you must first declare the exception.
The syntax is

 exception;
When you raise the exception, you do it by using the RAISE command.
The syntax is:

raise ;
Handle your exception just as if it were a named predefined exception. The syntax is:

when  then