I think that is different to what Mahmut is looking for Look in the /wwwroot/WEB_INF/web.xml where you can specify handlers eg <error-page> <error-code>500</error-code> <location>/WEB-INF/exception/java/lang/Exception.cfm</location> </error-page>
wg > -----Original Message----- > From: E. Keith Dodd [mailto:[EMAIL PROTECTED]] > Sent: 10 January 2003 15:45 > To: CF-Talk > Subject: Re: site-wide error handler > > > Mahmut > > I have site-wide error on all my sites, MX included. > Not sure what you have, but here is what I do: > 1. In Application.cfm: > <CFERROR type="EXCEPTION" template="ErrorTemplate.cfm"> > 2. Then on ErrorTemplate: > a. Just a general statement that there has been some error and > that email is > being sent to the webmaster. > b. Include a CFMail (I use html as know it will be acceptable to > me) to send > me an automatic email message about the error: > > <CFMail to="my email adress" > [EMAIL PROTECTED] > subject="My site Error Message" > type="HTML"> > An error was recorded on The Site's website: > <br><br> > 1. Error: > <br>#CFError.Diagnostics# > <hr width="75%"> > <ol start="2"> > <li>Date/Time: #CFError.DateTime# > <li>Template: #CFError.Template# > <li>QueryString: #CFError.QueryString# > <li>Ref: #CFError.HttpReferer# > <li>Browser: #CFError.Browser# > <li>Remote: #CFError.RemoteAddress# > </ol> > Time: #DateFormat(Now(),"m/d/yy")# : #TimeFormat(Now(),"h:mm tt")# > </CFMAIL> > > That way, the user gets a user-friendly message and I get an informative > email. > > Hope this helps. > > E. Keith Dodd > Wings of Eagles Services > www.wingserv.com > > ----- Original Message ----- > From: "Mahmut Basaran" <[EMAIL PROTECTED]> > To: "CF-Talk" <[EMAIL PROTECTED]> > Sent: Friday, January 10, 2003 8:17 PM > Subject: site-wide error handler > > > > Hi All, > > > > I'm trying to implement a site-wide error handler. Although it > works with > a static page (an error occured etc..), I had no luck with > putting cf logic > into the error handler (cfmail). > > > > Has anyone successfuly implemented this in cf mx ? > > > > Thank you, > > > > Mahmut > > > > > > > - > [This E-mail scanned for viruses by declude AntiVirus Software] > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Get the mailserver that powers this list at http://www.coolfusion.com Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4