If you want global handling on a FB3 site, I'd wrap the call to the core
file in 'index.cfm' with a CFTRY and then you can have multiple CFCATCH
block to handle the different error types. Or you can just have one general
one.
I usually have something like this:
<cftry>
<cfinclude template="fbx_fusebox....cfm" />
<cfcatch type="MissingInclude">
<cfmail to="..." subject="you idiot, you missed a file" />
<cflocation url="404.cfm" />
</cfcatch>
<cfcatch type="Database">
<!--- something --->
<cflocation url="500.cfm" />
</cfcatch>
...
</cftry>
I prefer that to using CFERROR because it makes things a little more
explicit, and i'm not limited by the fact that sometimes you get to use full
CF, and sometimes you only get out output the error variables in the
processing template. Feel free to read that as "I'm too lazy write two
copies of the error message, and have to hard code the layout in one",
because that's the reason.
On a different note, if you want fusebox specific help, check out the forums
at fusebox.org. It's got security, so you have to register, but nothing
unlike getting access to CF-Talk. There's a pretty substantial user base
there, and pretty much 100% FB3 users, so you'll find a much higher
concentration of info that on this list.
barneyb
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Friday, March 21, 2003 12:48 PM
> To: CF-Talk
> Subject: Problem with Error Handling with Fusebox 3
>
>
> I am trying to implement site-wide error handling on a fusebox 3
> site and am
> having a problem. The site is working just fine. However, I am
> "simulating"
> the database being down by turning off execute rights to a stored
> procedure on
> MSSQL. This throws an error a nice error against which I can
> test. When I
> place the following in my application.cfm...
>
> <cferror template="error/error.cfm" type="exception">
>
> I get a blank page. No error. Nothing. error.cfm contains some
> dummy code at
> the moment:
>
> Error!
> <cfoutput>
> #cferror#
> </cfoutput>
>
> What I eventually intend to do with this is show a generic
> message to the user,
> write the error info to a database, and email the webmaster email.
>
> Has anyone seen this blank page issue before? How are others dealing with
> site-wide errors? I also tried cftry/cfcatch, but I ran into
> problems with my
> sidebars (which were not throwing errors) still showing up and I
> do not want
> that.
>
> Any insight will be much appreciated.
>
> --Jeff
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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