Skip to content

Instantly share code, notes, and snippets.

@misterdai
Created November 21, 2012 10:17
Show Gist options
  • Save misterdai/4124120 to your computer and use it in GitHub Desktop.
Save misterdai/4124120 to your computer and use it in GitHub Desktop.
Just a test for use within wordpress (oooh that rhymes :P)
<cfcomponent output="false">
<cffunction name="onError">
<cfargument name="exception" required="true" />
<cfargument name="eventName" type="string" required="true" />
<cfif StructKeyExists(arguments.exception, 'rootcause')
And StructKeyExists(arguments.exception.rootCause, 'type')
And arguments.exception.rootCause.type Eq 'coldfusion.runtime.AbortException'>
<!--- CF7: Work around for CfAbort and CfLocation causing this to run --->
<cfreturn />
</cfif>
<cfdump var="#variables#" />
<cfdump var="#arguments#" />
</cffunction>
</cfcomponent>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment