<!--- overriding failure in framework.cfc --->
<cffunction name="failure" output="true">
<cfargument name="exception" default="">
<cfargument name="event" default="">
<cfif StructKeyExists(exception, "rootCause")>
<cfset exception = exception.rootCause>
</cfif>
<cfoutput><h1>A serious error occurred and an administrator has been notified.</h1></cfoutput>
<cfif StructKeyExists(request, "failedAction")>
<cfoutput><p>The action #request.failedAction# failed</p></cfoutput>
</cfif>
<cfmail to="EMAIL" from="EMAIL" subject="Error Details (#event#)" type="html">
#CGI.REMOTE_ADDR# - #CGI.HTTP_USER_AGENT# - #CGI.PATH_INFO#?#CGI.QUERY_STRING#
<cfdump var="#exception#">
<cfdump var="#request#">
<cfdump var="#session#">
</cfmail>
<!---
<cfoutput><h2>#exception.message#</h2></cfoutput>
<cfoutput><p>#exception.detail# (#exception.type#)</p>
<cfdump var="#exception#">
--->
</cffunction>
--
FW/1 on RIAForge: http://fw1.riaforge.org/
FW/1 on github: http://github.com/seancorfield/fw1
FW/1 on Google Groups: http://groups.google.com/group/framework-one