20th September 2018: PostgreSQL 11 Beta 4 Released!

Feature Description

SQLERRM/SQLSTATE for pl/pgsql

allows simple access to the SQL error state and the associated error text if an exception happened