Hello,

I'm using the Oracle.OnOracleError event to modify the errormessages for the users. I'm also using the TApplicationEvents.OnException to log the errormessages. The problem is that the OnException also fires AFTER the OnOracleError.

Question 1 :

Is it possible to set a sort of Handled flag on the error, so that the OnException event doesn't fire anymore?

Question 2 :
Is it possible to check in the OnException event whether the Exception is an EOracleEvent or not?
The code:

procedure TFrm_Main.ApplicationEvents1Exception(Sender: TObject; E: Exception);
begin
if E is EOracleError then
//nagnag
end;

doesn't work

any help would be appriciated

Thx