PostgreSQL custom exceptions?

Posted by Steve F on Stack Overflow See other posts from Stack Overflow or by Steve F
Published on 2010-04-23T15:47:57Z Indexed on 2010/04/23 16:43 UTC
Read the original article Hit count: 450

Filed under:
|
|

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 ?

© Stack Overflow or respective owner

Related posts about postgresql

Related posts about plpgsql