Sammy -
Hey thanks for the response.
 
I put it in the db so that it can be analyzed at a later date for quality, execs like to see fancy support stuff that really shows resolution, and in group dev/support environments errors can be assigned and solutions tracked.
 
BN


Brent Nicholas - [EMAIL PROTECTED]
 
"I can't afford to make exceptions. Once word leaks out that a pirate has gone soft, people begin to disobey you, and then it's nothing but work, work, work, all the time."
 
-- Man in Black - Princess Bride




Date: Thu, 21 Sep 2006 18:17:48 -0500
From: [EMAIL PROTECTED]
To: [email protected]
Subject: Re: [CFCDEV] Semi-OT: Error catching and CFC's

One method I've seen is to basically cfinclude the requested file in the Application.cfm (then cfabort at the end of the file) and wrap that in try/catch.  I deal with a ton of legacy code, so I haven't tried anything similar in Application.cfc, but I would imagine its would be possible. 

I've never logged it to a db, I like to get them in my inbox so I just email it to myself. 

Out of curiousity, what benefits have you experienced in logging it to a DB?

-Sam


Brent Nicholas wrote:
I'm wondering what techniques people have used to do error catching and the logging of those errors to a DB.
 
Right now I wrap a CFC call with try/catch in my action template, if it fails I have a custom tag that is called that breaks the 'cfcatch' variable scope into it's parts and builds a string, but only so far as the simple cfcatch keys like 'type'. These are just plain text vs. structures like 'tagContext'. I then take that string and toss it into the db with some other needed data.
 
Anyone using any other techniques to get this data and save it?
 
I've not yet placed error catching into the CFC's since it seems to bubble up into the calling template.
 
Thanks,

Brent Nicholas - [EMAIL PROTECTED]
 
"I can't afford to make exceptions. Once word leaks out that a pirate has gone soft, people begin to disobey you, and then it's nothing but work, work, work, all the time."
 
-- Man in Black - Princess Bride



You are subscribed to cfcdev. To unsubscribe, please follow the instructions at http://www.cfczone.org/listserv.cfm

CFCDev is supported by:
Katapult Media, Inc.
We are cool code geeks looking for fun projects to rock!
www.katapultmedia.com

An archive of the CFCDev list is available at www.mail-archive.com/[email protected]

You are subscribed to cfcdev. To unsubscribe, please follow the instructions at http://www.cfczone.org/listserv.cfm

CFCDev is supported by:
Katapult Media, Inc.
We are cool code geeks looking for fun projects to rock!
www.katapultmedia.com

An archive of the CFCDev list is available at www.mail-archive.com/[email protected]

You are subscribed to cfcdev. To unsubscribe, please follow the instructions at http://www.cfczone.org/listserv.cfm

CFCDev is supported by:
Katapult Media, Inc.
We are cool code geeks looking for fun projects to rock!
www.katapultmedia.com

An archive of the CFCDev list is available at www.mail-archive.com/[email protected]

Reply via email to