User-defined exceptions may be declared in the declarative part of any PL/SQL anonymous block, subprogram, or package. Predefined exceptions are internally defined exceptions with names that PL/SQL declares globally in the STANDARD package. Internally defined exceptions can be associated with a declared name by using EXCEPTION_INIT, and user-defined exceptions are raised explicitly.
Community Discussion