Error Handling

Last Updated: 9/16/2008



Sections above here:
Home  ยป  Development

Sections below here:

Topics in this section:
Rethinking the User Interface
Writing your first Delphi App
Images and Graphics
Extending Intraweb
Working with COM
Working with ClientDataSets
Creating PDA Applications
Error Handling
Control Size
Reading and writing custom cookies
Miscellaneous
Advanced Development
Session Locking

Search Documentation:

Error Messages

Intraweb will display error messages resulting from exceptions.These error messages can be customized using templates. See using templates.  

Simple error dialog

When an IntraWeb application raises an exception, that exception can be caught and the information displayed in a customized manner. In some cases the exception can be displayed without aborting the application. There is a property of the ServerController called "ExceptionDisplayMode" which can be set to smAlert, smSameWindow, SmNewWindow, or smSameWindowFrame. Default is smAlert which will display error in a pop up window.

Timeouts

IntraWeb treats "TimeOut" exceptions differently than regular exceptions. "TimeOut" exceptions occur when a user tries to access a session which is already terminated (or never existed before). You can get this error by setting IWServerController.SessionTimeOut for a short period of time and leave your application with no activity. Then, if  you try to access your application, you will end up with a time-out error. You can catch TimeOut errors by assigning IWServerController.TimeOutURL . This URL will be displayed if a Timout error occurs. 

Non-recoverable Errors

If an exception occurs which prevents a page to completely render (e.g. any exception in IWForm.OnRender) will show

Non server-side errors

Errors could occur in the WEB browser itself while script code parcing. As this is not an IntraWeb error you can do nothing with it to costomize, but it's useful to configure IE in the way like this:

IE | Tools | InternetOptions | Advanced | Show friendly HTTP error messages.



(C) 2002-2009 - Atozed Software Ltd.