Solved

Intraweb - multiple error pages

Posted on 2010-11-18
1
1,349 Views
Last Modified: 2013-11-23
Currently, on all errors  intraweb shows its logo with error page
Would like to display own error page depending on the error so the user will not see the Intraweb error page..

And I dont mean the session timeout...
Looking for a solution that would handle by exception type perhaps

TIA
0
Comment
Question by:controlr
1 Comment
 
LVL 7

Accepted Solution

by:
ebob42 earned 500 total points
ID: 34168271
You can try to handle all errors yourself of course, by placing all code inside a try-except block. Also, the OnException event handler of the Server Controller is called when an exception is not handled by the IntraWeb application. If you don't implement OnException, then the following default code is executed:

procedure TIWServerController.IWServerControllerBaseException(
  AApplication: TIWApplication; AException: Exception);
begin
  AApplication.ShowMessage(AException.Message);
end;

This will show that error page (I believe), so if you implement the OnException event handler you can produce your own error message of jump to your own page if you want.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
error 1.1 400 Bad request idhttp delphi 18 199
MS Access from Delphi 31 78
IP without any Dots 1 51
Firemonkey how to swip panel with finger tap 1 18
A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

713 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question