PgDAC
Determines the error code returned by the server.
EDAError
property ErrorCode: integer;
Use the ErrorCode property to determine the error code returned by PostgreSQL. This value is always positive.