Jason McCoy
Member since Mar 1, 2010
- Profile: /members/5559-jason-mccoy.htm
- Comments: 4
Recent Blog Comments By Jason McCoy
-
Application.cfc OnRequest() Method Affects OnError() Arguments
Posted on Mar 1, 2010 at 4:55 PM
Okay, sorry about flooding your comments, but on a whim I tried one more thing. I made no changes to the application.cfc file I posted above, but this time I created another .cfm file that simply had <cfinclude template="onerror_parsing.cfm" /> in it. When loading it this way the OnError in ... read more »
-
Application.cfc OnRequest() Method Affects OnError() Arguments
Posted on Mar 1, 2010 at 4:42 PM
@Ben Thank you for responding so quickly. I thought I would post my code. I was just doing a simple POC when I noticed this. application.cfc: ---------------------------------------- <cffunction name="OnRequest" access="public" returntype="void" output="true"> <cfargument name="TargetP... read more »
-
Application.cfc OnRequest() Method Affects OnError() Arguments
Posted on Mar 1, 2010 at 4:06 PM
I forgot to mention that my mistyped tag was located in my index.cfm file. Interestingly enough I created the same error in a cfc which I called as an object. In that way the error was caught and displayed the way I wanted to from the OnError function. Am I missing something?... read more »
-
Application.cfc OnRequest() Method Affects OnError() Arguments
Posted on Mar 1, 2010 at 3:54 PM
I am using the OnError function in application.cfc and I noticed a strange occurance. If I mistype a cf tag (ie. <cfssset x = y />) the OnError does not catch it, just a generic CF error is displayed. Furthermore even if I use a cftry cfcatch around that code, with type = "any", CF still dis... read more »