> From: cf coder [mailto:[EMAIL PROTECTED]
> Hello everybody,
> I'm hoping someone can help me. I am working on this
> exception handling code. I have written a custom error
> handler that displays a custom error message when a
> coldfusion error occurs and sends an email to the
> administrator. I want to append the complete error block to
> the email body. i.e essentially the raw error message you
> would see if you didn't have the cftry and cfcatch.

You can pass in any/all of the cfctach scoped variables. Check the docs
for a complete list, but you probably are most interested in:

#cfcatch.type#
#cfcatch.message#
#cfcatch.detail#

Instead of passing them in explicitly, just pass in a reference to the
cfcatch structure and dump it in the email or output the specific keys
within the cfcatch structure.

Michael T. Tangorre
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to