PostgreSQL custom exceptions?
- by Steve F
In Firebird we can declare custom exceptions like so:
CREATE EXCEPTION EXP_CUSTOM_0 'Exception: Custom exception';
these are stored at the database level. In stored procedures, we can raise the exception like so:
EXCEPTION EXP_CUSTOM_0 ;
Is there an equivalent in PostgreSQL ?