Archive for the 'Implementation' Category
Throwing exceptions in cfscript

So… apparently cfscript doesn’t have any sort of implementation for inside tags. This seemed rather silly to me, considering it supports /

try { i = 3/0; }
catch (any excpt) {
//do something… just don’t throw() anything.
}

After some quick googling, I discovered that good ‘ol Ray Camden wrote a UDF for the throw(). He also has a blog post about a function rethrow().

Thanks, Ray!