How do you declare a user-defined exception?

Category: Pl/SQLHow do you declare a user-defined exception?
Editor">Editor Staff asked 2 years ago

How do you declare a user-defined exception?

1 Answers
Editor">Editor Staff answered 2 years ago

You can declare the User defined exceptions under the DECLARE section, with the keyword EXCEPTION.
Syntax:

 

  1. <exception_name> EXCEPTION;