Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Error handling
In IntraWeb XI, I was able to use the URLReposnders to use a self-registered Error page, that I could then run code on. I'm trying to work out the best way to replicate this behaviour in IWXV

I don't want to use a static page or a template, because I want to run my own code on the page. I've tried using a TerminateAndRedirect on the OnException, but it doesn't appear to have any effect (it is being called, but the browser still gets sent to the Intraweb error page)

Can anyone point me in the right direction?
Hi, you have options to Customizing Exceptions:
I think you are looking is SubclassingExceptionRenderer demo.

is there any way I could use that to run a previously registered internal IW form?

Alternatively, could I get it to run code specific to the session? I want it to have a link to fire the user back to the front page of the app, but we have multiple front pages depending on the entrance URL
URLResponders were replaced by TContentHandlers (the concept is more or less the same, except that content handlers are not components, they are light classes)

There are several ways to handle the exception in IW 15.

Maybe the best one is creating your own exception handler. This example shows how to:

Forum Jump:

Users browsing this thread: 1 Guest(s)