Hello,
I wrote procedure which is responsible for getting all exceptions in the web application. The code is:
procedure TfrmLoginForm.WebFormCreate(Sender: TObject);
begin
Application.ThemeColor := $8F814D;
Application.OnError := AppException;
end;
begin
Application.ThemeColor := $8F814D;
Application.OnError := AppException;
end;
Implementation AppException procedure is:
procedure TfrmLoginForm.AppException(Sender: TObject; AError: TAppplicationError; var Handled:Boolean);
begin
Handled:=True;
MessageDlg('Wystąpił błąd: '+AError.AMessage, mtError, [], nil);
end;
begin
Handled:=True;
MessageDlg('Wystąpił błąd: '+AError.AMessage, mtError, [], nil);
end;
I set Handled:=True; and according to documentation:
"When the Handled parameter is set to true, the standard error is not longer performed."
but I still getting red panel with standard output error exception.
Why?
Regards