在postgresql中怎样截获所有的exception??
手册上讲在存储过程中截获exception采用如下方法:
[<>]
[DECLARE
declarations]
BEGIN
statements
EXCEPTION
WHEN condition [OR condition ...] THEN
handler_statements
[WHEN condition [OR condition ...] THEN
handler_statements
...]
END;
但在postgresql的exception的定义中,都有明确的错误,有没有一个像java的exception的通用错误代码,能截获所有的exception??