PgDAC
Occurs when PostgreSQL raises an error.
TDAScript
property OnError: TOnErrorEvent;
Action indicates the action to take when the OnError handler exits. On entry into the handler, Action is always set to eaFail.