On Dec 6, 2007 9:28 AM, Richard White <[EMAIL PROTECTED]> wrote:
> <cffunction name="onError">
>   <cfargument name="exception" required=true/>
>   <cfargument name="EventName" type="String" required=true/>
....
> then in the file ../Errors/E.2_SiteWideErrorHandlerUI.cfm we are trying to 
> access the error.message variable but it says that it is not defined.

You're confusing two different types of error handling!

The error variable you're talking about is what you have when you use <cferror>.

Inside onError(), you have arguments.exception and arguments.eventName
(which is the Application.cfc even in which the exception occurred).

Also be aware that the exception is usually focused on the
Application.cfc even that failed and you need to check
arguments.exception.rootcause for the original exception thrown by
your code.
-- 
Sean A Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org/

"If you're not annoying somebody, you're not really alive."
-- Margaret Atwood

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Get the answers you are looking for on the ColdFusion Labs
Forum direct from active programmers and developers.
http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72&catid=648

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:294357
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to