Hello
I wanted to write an exception-handler in Delphi with DOA.
I implemented a central Exception-procedure:
Application.OnException := AppException;
What I wrote is:
with DataModule1.oscUserEdit do
try
Lines.Clear;
Lines.Add('ALTER USER "'+dbedLoginName.Text+'"');
Lines.Add('TEMPORARY TABLESPACE "'+dblcTts.text+'"');
Execute;
except
on E:EOracleError do ShowMessage(E.Message); //if the try failes it never passes this line
end;
Why does the exception-meassage already apear after the execute line failed?
What am I doing wrong? or is there a better Solution?
regards Fabian
I wanted to write an exception-handler in Delphi with DOA.
I implemented a central Exception-procedure:
Application.OnException := AppException;
What I wrote is:
with DataModule1.oscUserEdit do
try
Lines.Clear;
Lines.Add('ALTER USER "'+dbedLoginName.Text+'"');
Lines.Add('TEMPORARY TABLESPACE "'+dblcTts.text+'"');
Execute;
except
on E:EOracleError do ShowMessage(E.Message); //if the try failes it never passes this line
end;
Why does the exception-meassage already apear after the execute line failed?
What am I doing wrong? or is there a better Solution?
regards Fabian