Solved

Intraweb - multiple error pages

Posted on 2010-11-18
1
1,353 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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
Delphi XE10 Round Image 2 226
TEMBEDDEDWB how can i change its user agent ? 8 106
DBCtrlGrid, Delphi, Scroll 8 86
Connect to SQL 2008 r2 server over the Internet 4 81
The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

738 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