Hi,
I have a site I'm converting to use application.cfc rather than
application.cfm. I have a setting I use to say I'm on local (development mode)
or live. If application.setlocal eq 1 I'm in dev mode and it turns a bunch of
stuff on or off to help me with development. Works perfectly for everything
except OnError.
I have the following for OnError. Live mode (application.setlocal eq 0) works
perfectly. It's the ELSE that's not working. In the else I want it to show
robust error messaging... but I'm getting a blank screen. Any ideas on how I
can make it show me robust error handling?
<cffunction name="OnError" access="public" returntype="void"
output="true" hint="Fires when an exception occures that is not caught by a
try/catch.">
<cfif application.setlocal eq 0>
<cferror template="error_handler.cfm" type="exception">
<cfreturn false />
<cfelse>
<cfargument name="Exception" required=true/>
<cfargument name="EventName" type="String" required=true/>
<cfreturn />
</cfif>
</cffunction>
Robert B. Harrison
Director of Interactive Services
Austin & Williams
125 Kennedy Drive, Suite 100
Hauppauge NY 11788
P : 631.231.6600 Ext. 119
F : 631.434.7022
http://www.austin-williams.com
Great advertising can't be either/or. It must be &.
Plug in to our blog: A&W Unplugged
http://www.austin-williams.com/unplugged
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:347590
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm