Title: 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