[cfaussie] catching a thrown error

2012-06-26 Thread Steve Onnis
If you use CFTHROW to throw errors, can you still use TRY/CATCH to catch the error and handle it how you want to handle it? I have tried but all i get is the thrown error which is not what i want to do. I want to throw it but then use a TRY/CATCH to catch the thrown error and return a

Re: [cfaussie] catching a thrown error

2012-06-26 Thread AJ Mercer
if you specifiy a custom type, you need to catch that type eg cftry cfthrow type=myError message=my error message detail=my error details errorcode=500 cfcatch type=myError cfdump var=#cfcatch# label=catch my error expand=true / /cfcatch cfcatch cfdump var=#cfcatch# label=cfcatch expand=true

RE: [cfaussie] catching a thrown error

2012-06-26 Thread Steve Onnis
Thanks. Figured it out. I was doing it in script and i had catch (e Any) but its meant to have been catch (Any e) From: AJ Mercer [mailto:ajmer...@gmail.com] Sent: Tuesday, 26 June 2012 6:32 PM To: cfaussie@googlegroups.com Subject: Re: [cfaussie] catching a thrown error if you