![]() |
Error handling - Printable Version +- Atozed Forums (https://www.atozed.com/forums) +-- Forum: Atozed Software Products (https://www.atozed.com/forums/forum-1.html) +--- Forum: IntraWeb (https://www.atozed.com/forums/forum-3.html) +---- Forum: English (https://www.atozed.com/forums/forum-16.html) +----- Forum: IntraWeb General Discussion (https://www.atozed.com/forums/forum-4.html) +----- Thread: Error handling (/thread-1321.html) |
Error handling - SWTwo6 - 10-16-2019 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? RE: Error handling - Jose Nilton Pace - 10-16-2019 Hi, you have options to Customizing Exceptions: https://github.com/Atozed/IntraWeb/tree/master/XIV/Delphi/CustomizingExceptions I think you are looking is SubclassingExceptionRenderer demo. RE: Error handling - SWTwo6 - 10-16-2019 Thanks, 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 RE: Error handling - Alexandre Machado - 10-22-2019 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: https://github.com/Atozed/IntraWeb/tree/master/XIV/Delphi/HandleSessionTimeout |