3 Replies Latest reply on Nov 30, 2010 9:13 AM by Saman

    Bringing "Variables Scope" in to onError(). Is it Possible?

    Saman Level 1

      I’m trying to access the Variables scope ( <cfdump var=”#variables#”> ) inside the OnError() in Application.cfc for debugging and logging reasons. Something like this :

      <cffunction name="onError" returnType="void" output="true">
        <cfargument name="exception" required="true">
        <cfdump var=”#variables#”>
      </cffunction>

      With good old Application.cfm and <cferror> I was able to access Variable Scope, just like URL or Session Scope. But OnError() been a function, it seems don’t have access to Variables Scope. Is there any possibility of
      bringing Variables Scope in to OnError(), when it triggered? Or is that entirely not possible?

      Thanks you in advance for your brain power!
      - Sam