Save original PG::Error into Exception so we can retrieve error codes.