Created
November 21, 2012 10:17
-
-
Save misterdai/4124120 to your computer and use it in GitHub Desktop.
Just a test for use within wordpress (oooh that rhymes :P)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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