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]
- [CFCDEV] Semi-OT: Error catching and CFC's Brent Nicholas
- Re: [CFCDEV] Semi-OT: Error catching and CFC's Sammy Larbi
- Re: [CFCDEV] Semi-OT: Error catching and CFC's Robert Munn
- RE: [CFCDEV] Semi-OT: Error catching and CFC's Brent Nicholas
- Re: [CFCDEV] Semi-OT: Error catching and CFC's Kola Oyedeji
