Hi, I have a error handler template which sends me an email whenever an
error is encountered. When there is error on an included template, the my
error handler always points to main template that included the error
generating template.
For example : Main page : PageStart.cfm contains/includes cfinclude for
page_error.cfm. When there is error in Page_Error.cfm, I am shown as error
in PageStart.cfm. Here is code from my error handler
URL: <cfif isDefined("cgi.server_name") and isDefined("cgi.script_name")>
<a
href="https://#cgi.server_name##cgi.script_name#">https://#cgi.server_name##
cgi.script_name#</a></cfif> <br />
Address: <cfif
isDefined("error.remoteAddress")>#error.remoteAddress#</cfif><br
/><br />
Template: <cfif isDefined("error.template")>#error.template#</cfif><br />
Error: <cfif isDefined("error.Diagnostics")><span
class="Mail_Red">"#error.Diagnostics#</span></cfif><br /><br />
Error on <cfif isDefined("cgi.path_translated")>#cgi.path_translated#</cfif><br
/>
From page <cfif isDefined("cgi.http_referer")>
<a href="#cgi.http_referer#">#cgi.http_referer#</a></cfif><br /><br />
If you have CF debugging enabled, then CF debugging will point me to
Page_Error.cfm and line no. where the error occurred. This is exactly what I
need in my error handler also. Probably I might be missing a property of
error object.
Any ideas??
--
<Ajas Mohammed />
http://ajashadi.blogspot.com
-------------------------------------------------------------
To unsubscribe from this list, manage your profile @
http://www.acfug.org?fa=login.edituserform
For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by http://www.fusionlink.com
-------------------------------------------------------------