Yes, its part of cfmail. I usually use cfdump for form & client vars to get
an idea of what user was working with when the error occurred. I might try
cfdump of error also. Dont know if it will point me to what I need i.e.
exception generating template which is included in main template.
Ajas.
On 3/16/07, Troy Jones <[EMAIL PROTECTED]> wrote:
Is this code from your <cfmail> tag? We have begun using <cfdump> in
place of mail formatting. It gets a lot extra stuff, but it puts everything
you need in there.
For example:
<cfmail…..>
<cfdump var="#error#">
</cfmail>
Troy Jones
Dynapp Support Team
678-528-2952
[EMAIL PROTECTED]
[EMAIL PROTECTED]
------------------------------
*From:* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] *On Behalf Of *Ajas
Mohammed
*Sent:* Friday, March 16, 2007 11:12 AM
*To:* [email protected]
*Subject:* [ACFUG Discuss] Error handler, included template not shown. The
calling template is shown.
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 FusionLink <http://www.fusionlink.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 FusionLink <http://www.fusionlink.com>
-------------------------------------------------------------
--
<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
-------------------------------------------------------------