Andrew, what do you mean cflog didn't finish? It does and it did. On 5/14/07, Andrew Scott <[EMAIL PROTECTED]> wrote: > > Thats the way I excpected it to flow... Except what puzzles me is that the > cflog didn't finish, does that mean that cflog was halted because an error > was thrown? > > > > On 5/14/07, MrBuzzy <[EMAIL PROTECTED]> wrote: > > > > Okay let's try to help him out then. Please bear with me.. here goes. > > > > Observe the following code (which I just wrote and tested). Make an > > Appication.cfc with ONLY this code; > > > > <cfset this.name = "ApplicationName"> > > <cfset this.sessionManagement = true> > > <cfset this.sessionTimeout = createTimeSpan(0,0,0,1)> > > > > <cffunction name="onSessionEnd" returnType="void" output="false"> > > <cfargument name="sessionScope" type="struct" required="true"> > > <cfargument name="appScope" type="struct" required="false"> > > <cflog text="session ended" /> > > <cfthrow message="somethingnasty"> > > </cffunction> > > </cfcomponent> > > > > The behaviour is "session ended" is logged. The thrown error goes no > > where. > > > > Then add OnError as follows; > > > > <cffunction name="onError" returnType="void" output="false"> > > <cfargument name="exception" required="true"> > > <cfargument name="eventname" type="string" required="true"> > > <cflog text="#exception.message#"> > > </cffunction> > > > > Some might expect "session ended" to be logged. > > > > Instead "Event Handler Exception." is logged. > > > > That's just how it is. > > > > You need to then look in exception.rootcause to find the tru error > > thrown in onsessionend. > > > > Anyone want to agree with me, please? > > > > > > On 5/14/07, Peter Tilbrook < [EMAIL PROTECTED]> wrote: > > > > > > > > > Taco has been quite of late - at least to me lol - his absence has > > > been noted. > > > > > > > > > > www.aegeon.com.au > > Phone: +613 8676 4223 > > Mobile: 0404 998 273 > > > > > >
--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "cfaussie" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en -~----------~----~----~----~------~----~------~--~---
