0 Replies Latest reply on Mar 12, 2009 2:07 PM by happysailingdude

    using <cferror and appErrorHandler.cfm but only some types of errors caught in this way

    happysailingdude Level 1
      hi there

      i dont want users to ever see the default error message

      i have put <cferror type="request" exception="any" template="/errorDocs/appErrorHandler.cfm" /> in application.cfm

      and appErrorHandler.cfm is a nice simple page which i am 99.99% sure can not ever have any errors in it.

      alas sometimes users get my error page, other times they get the default cf one

      i have carried out some testing and found that if i create an error such as

      <cfif myvars.this_var_doesnt_exist eq 1>hello</cfif> [ie referencing a non-existant variable] ------- this would result in the user getting my error page as desired

      however this error:

      <cfif myvars.this_var_doesnt_exist eq 1>hello [ie not closing a <cfif> statement with a </cfif> tag] ------- then this still results in the default cf error page being shown

      i have also tried to cover all bases by putting this in application.cfm

      <cferror type="validation" exception="any" template="/errorDocs/appErrorHandler.cfm" />
      <cferror type="request" exception="any" template="/errorDocs/appErrorHandler.cfm" />
      <cferror type="exception" exception="any" template="/errorDocs/appErrorHandler.cfm" />

      but it still dont work

      any thoughts anyone?

      TIA

      Nick