Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
IWError.html not rendered from raised exception in servercontroller
#9
Hi Alexandre,

In my case:
<code>
procedure TIWServerController.IWServerControllerBaseNewSession(
ASession: TIWApplication);
begin
if GSessions.IsValidSession(ASession) then
begin
ASession.Data := TIWUserSession.Create(nil, ASession);
UserSession.Initialize; // most likely it will occur here due to invalid connectionname, sql access denied, etc...
end;
end;
</code>

In your Demo SubclassingExceptionRenderer :
<code>
procedure TIWServerController.IWServerControllerBaseNewSession(
ASession: TIWApplication);
begin
ASession.Data := TIWUserSession.Create(nil);
raise Exception.Create('test Error Message'); // no message appears and the browser is blank
end;
</code>

Thank you,
Craig
Reply


Messages In This Thread
RE: IWError.html not rendered from raised exception in servercontroller - by Craig Burke - 04-05-2019, 12:05 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)