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

What I need is to be able to display our Custom Error in HTML window to user. Whether this occurs as an exception via the UserSession object, ServerConroller object or a form. We want to maintain consistancy. I have a workaround, though it just does not seem like the proper way. I can't use the ServerController.OnException because if that is assigned it bypasses the form (even when Handled is true).
So this ends up a blank screen. Can't TerminateAndRedirect there also it just stays blank.

The workaround is to test for exception when creating UserSession and Initilization if so, store the E.message to ServerController public property ErrorMsg and test for non-empty in creation of form. If so, then webApplication.terminate and Raise new execption with the ErrorMsg value and reset ErrorMsg to emptystr.

This still leaves holes though and is not a complete solution.

Thanks,
Craig
Reply


Messages In This Thread
RE: IWError.html not rendered from raised exception in servercontroller - by Craig Burke - 04-03-2019, 08:49 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)