Skip to main content
Ben Nadel at TechCrunch Disrupt (New York, NY) with: Aaron Foss and Mark C. Webster
Ben Nadel at TechCrunch Disrupt (New York, NY) with: Aaron Foss ( @aaronfoss ) Mark C. Webster ( @markcwebster )

ColdFusion Runtime Abort Exception

By on
Tags:

I keep getting emails when my site errors. I like to be alerted; however, I kept getting an email when I went to fiew any files. The kink was, the file was working. Went to it, saw it, all was good. And yet, still the emails. Upon further investigation, it seems the error being thrown was an AbortException. After two seconds of Google time, I see that Raymond Camden post a solution explaining that when you use the onError event in the Application.cfc, every single CFLocation tag will throw this error. Check out his solution, its a great fix.

I had to go and change the way my arguments were coming into the onError method. Before, I was just grabbing ARGUMENTS, but now, I have to sepparate them out to reference then as above:

<!--- Store the passed arguments. --->
<cfargument name="Exception" type="any" required="true" />
<cfargument name="EventName" type="string" required="true" />

Reader Comments

I believe in love. I believe in compassion. I believe in human rights. I believe that we can afford to give more of these gifts to the world around us because it costs us nothing to be decent and kind and understanding. And, I want you to know that when you land on this site, you are accepted for who you are, no matter how you identify, what truths you live, or whatever kind of goofy shit makes you feel alive! Rock on with your bad self!
Ben Nadel