Declaring Exceptions:
Exceptions are declared in the declarative part of a PL/SQL block, subprogram or package. It holds a name followed by the datatype called Exception. The given syntax displays this:
DECLARE
Ex1 EXCEPTION;
Exception declaration is very much same to variable declaration. However, they cannot appear as a part of an assignment statement.