Write a CFC to do what you want!  Here’s our onError method:

 

<cffunction name="onError" returntype="void">

      <cfargument name="Exception" required="true"/>

      <cfargument name="EventName" type="String" required="true"/>

 

      <cfinvoke component="#application.sCFCPath#.ErrorManager" method="handleError">

            <cfinvokeargument name="exception" value="#arguments.Exception#"/>

      </cfinvoke>

</cffunction>

 

Cheers,

Roland

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dave Cordes
Sent: Wednesday, June 08, 2005 1:05 PM
To: [email protected]
Subject: Re: [CFCDev] onRequest Problem

 

OK, apparently you can't use cfinclude inside the onError method. I commented it out and have not received an error yet. This really stinks

 

How do others use the onError method to throw friendly errors to your users? Do you even use it at all? I'm thinking about reverting to the cferror tag which I have used previously.



 

On 6/8/05, Dave Cordes <[EMAIL PROTECTED]> wrote:

Another link from Raymond's blog.

 



 

On 6/8/05, Dave Cordes <[EMAIL PROTECTED] > wrote:

I think this has something to do with it.

 

 

I did go ahead and adjust the path to that error template using a ColdFusion mapping and the error still occurred so that can't be the problem.

 

Thanks.

 

On 6/8/05, Jeff Anderson <[EMAIL PROTECTED] > wrote:

<cfinclude template="wwwroot/shared/error.cfm">

 

that will cause an exception if the error occurs in a folder where that path is not valid


----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to [email protected] with the words 'unsubscribe cfcdev' as the subject of the email.

CFCDev is run by CFCZone ( www.cfczone.org) and supported by CFXHosting (www.cfxhosting.com).

CFCDev is supported by New Atlanta, makers of BlueDragon
http://www.newatlanta.com/products/bluedragon/index.cfm

An archive of the CFCDev list is available at www.mail-archive.com/[email protected]

 


--
Dave Cordes
www.apoktechnology.com
636-412-1086 (Office)
636-578-4235 (Mobile)




--
Dave Cordes
www.apoktechnology.com
636-412-1086 (Office)
636-578-4235 (Mobile)




--
Dave Cordes
www.apoktechnology.com
636-412-1086 (Office)
636-578-4235 (Mobile) ----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to [email protected] with the words 'unsubscribe cfcdev' as the subject of the email.

CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting (www.cfxhosting.com).

CFCDev is supported by New Atlanta, makers of BlueDragon
http://www.newatlanta.com/products/bluedragon/index.cfm

An archive of the CFCDev list is available at www.mail-archive.com/[email protected]

----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to [email protected] with the words 'unsubscribe cfcdev' as the subject of the email.

CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting (www.cfxhosting.com).

CFCDev is supported by New Atlanta, makers of BlueDragon
http://www.newatlanta.com/products/bluedragon/index.cfm

An archive of the CFCDev list is available at www.mail-archive.com/[email protected]

Reply via email to