hi,

in my application.cfc i have the following code for any unexpected errors:

<cffunction name="onError"> 
  <cfargument name="exception" required=true/>
  <cfargument name="EventName" type="String" required=true/>
  
  <!--- onError: When using the onError method, every single <cflocation> call 
will fire the event. Kind of a silly bug, but it didn't get found till too 
late. Christian Cantrell came up with a nice work around to place inside your 
onError: --->
    <cfif isdefined("arguments.exception.rootCause")>
          <cfif arguments.exception.rootCause eq 
"coldfusion.runtime.AbortException">
                <cfreturn/>
          </cfif>
        </cfif>

  
  <cflocation url="../Errors/E.2_SiteWideErrorHandlerUI.cfm">
</cffunction> 


then in the file ../Errors/E.2_SiteWideErrorHandlerUI.cfm we are trying to 
access the error.message variable but it says that it is not defined.

i have read on some other sites that i should be able to access this error. 
structure but i cant see where it is being created

does anyone have any ideas why on my error page it cant access this error. 
structure and what i may be doing wrong, thanks 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Enterprise web applications, build robust, secure 
scalable apps today - Try it now ColdFusion Today
ColdFusion 8 beta - Build next generation apps

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:294333
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to