Title: Error Handling
for error handling 2 way are available:
 
-the same error.htx for all the application
define in the t4server.ini the DEFAULTERRORFILE with the location of your error.htx
the default value is:
DEFAULTERRORFILE=f:\\program files\\Tango2000\\Configuration\\error.htx
 
-you want a separate error.htx for each application
you need to define define defaultErrorFile in the application scope like this:
<@ASSIGN Application$defaultErrorFile '<@WEBROOT>error/error.htx'>
it will set your error handler file at /error/error.htx relatively to your site
you can also set it to some other place where the Witango Service have access granted
 
Hope this help
 
Gauthier
----- Original Message -----
Sent: Thursday, July 18, 2002 10:16 PM
Subject: Witango-Talk: Error Handling

I need to create custom errors for my sites.

I created a TCF that creates a variable, just text, of the looped through errors using <@ERRORS> and <@ERROR> tag. The is logged and an email is sent to me notifying me of the problem.

Instead of having to put the <@CALLMETHOD> to the above TCF I created I want to globally set the error page for my, page, or application.

I read the documentation for the configuration variable defaultErrorFile and created the error.htx file containing the <@CALLMETHOD> and the HTML I want to return. I placed this in the root directory of the site but cannot get it to display on errors. Do I have the .htx file in the correct place? Can I set the location of the .htx with a local variable, local$defaultErrorFile = "/error.htx"?

I also heard <@THROWSERROR> tag mentioned. What does it do and where can I find information about this?

The only problem is I have several different sites and want a different error page for each.

Any suggestions?

Reply via email to