Need to know in Redshift database if there is a option to capture error code or error message in the exception block similar to error code (SQLCODE) and error description(SQLERRM) in Oracle. Requirement is to capture the error code or error message occuring in procedure and insert it into error logging table. Kindly suggest.