RE: [Mach-II] Re: Exception Handling

1 view
Skip to first unread message

Christine Davis

unread,
Jan 29, 2007, 11:52:05 AM1/29/07
to mach-ii-for...@googlegroups.com
Perfect, Thanks!

Thanks!
Christine Davis
ColdFusion Lead
Nations Technical Services
Prairie Village, KS
913-748-8044 ext 4703
chd...@nationsholding.com

-----Original Message-----
From: mach-ii-for...@googlegroups.com
[mailto:mach-ii-for...@googlegroups.com] On Behalf Of Peter J.
Farrell
Sent: Friday, January 26, 2007 7:43 PM
To: Mach-II for ColdFusion
Subject: [Mach-II] Re: Exception Handling


On Jan 26, 3:29 pm, "Christine Davis" <chda...@nationsholding.com>
wrote:
> I inject the constants into the event object in preProcess.

I'd suggest that this could cause breakage because this approach
assumes that you always copy the event args when you announce a new
event. As you are found out, this is a problem. When an exception
occurs, the preProcess doesn't run again - so I assume this is the
disconnect.

I would suggest that you have move your injection of the appConstants
into the preEvent process:

<cfif NOT arguments.event.isArgDefined("appConstants")>
<cfset arguments.event.setArg("appConstants", [where ever you get
them here]) />
</cfif>

This way, if your appConstants aren't they (like in the exception
event(s)) the plugin will injection them since they are missing.

Best,
.Peter


Reply all
Reply to author
Forward
0 new messages