在postgresql中怎样截获所有的exception

在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??

第一个condition用QUERY_CANCELED,
第二个condition可以用OTHERS 。
===========可以捕获所有的异常。

官网文档如下说:
[quote]The special condition name OTHERS matches every error type except QUERY_CANCELED. [/quote]