Tom Van Schoor
Member since May 3, 2012
- Profile: /members/9903-tom-van-schoor.htm
- URL: http://www.tutuka.com
- Comments: 3
Recent Blog Comments By Tom Van Schoor
-
I Finally Understand The Finally Part Of A Try/Catch Control Statement
Posted on May 3, 2012 at 6:18 AM
Ok sorry, I don't mean to carry on like this, but I felt compelled to show an AOP-ish example: component { function errorLogger() { try { // if this was a real AOP // example, this part would // be filled in at runtime someAction(); } catch(any e){ // do your logging writedump(var=e); ... read more »
-
I Finally Understand The Finally Part Of A Try/Catch Control Statement
Posted on May 3, 2012 at 5:38 AM
For that matter, it makes a lot more sense if you are for instance using aop... Where you for instance have a general errorLogger method that wraps around your annotated functions.... read more »
-
I Finally Understand The Finally Part Of A Try/Catch Control Statement
Posted on May 3, 2012 at 5:33 AM
Hi Ben, There are other reasons why you may want to use a cffinally clause where you cannot replace it with code outside of the cftry clause. Mostly in elaborate logging schemes with nested cftry where errors bubble up so to speak... Bear with me for a moment as this may not seem very usef... read more »