Haha no problem DW - A man can be forgiven all his sins if not fully caffeinated - you shall be judged not guilty on grounds of diminished responsibility.
Congrats on the baby by the way, I hadn't heard. Rob On Wednesday, January 16, 2013 2:21:19 PM UTC, Dan Wilson - [email protected] wrote: > > Or, I could actually read your email after I sent my scathing response, > and realize you said you'd remove the exception handler config setting from > your MG config to accomplish this. > > Sorry, Rob, I'm undercaffinated and dealing with a newborn baby in our > house :) > > My apologies. > > Carry on. > > > DW > > Dan Wilson <javascript:> > Wednesday, January 16, 2013 9:19 AM > No. No. No. > > Never ever ever modify the Model Glue framework files. Ever. > > Now that we have that out of the way, the best solution in this case would > be to rethrow the error in your ModelGlue Exception Handler and let the > onError method catch it. > > DW > > Rawlins <javascript:> > Wednesday, January 16, 2013 9:18 AM > Hi DW, > > Yeah that is how things work. I think I may not have explained my issue > properly. > > Basically I want to create an app wide exception handler, which basicly > catches any eror regardless of whether it happens within or outside of the > framework. > > My guess is that I need to use onError() for doing this, but somehow > needed to route the internel MG exceptions here too. From what you have > clarified here it seems that I can simply remove the exception handler > config setting from MG and any errors bubble up and trigger my onError in > app.cfc which is just what I wanted. > > Thanks, > > Rob > > On Wednesday, January 16, 2013 1:53:41 PM UTC, Dan Wilson - > [email protected] <javascript:> wrote: > -- > Model-Glue Sites: > Home Page: http://www.model-glue.com > Documentation: http://docs.model-glue.com > Bug Tracker: http://bugs.model-glue.com > Blog: http://www.model-glue.com/blog > > You received this message because you are subscribed to the Google > Groups "model-glue" group. > To post to this group, send email to [email protected]<javascript:> > To unsubscribe from this group, send email to > [email protected] <javascript:> > For more options, visit this group at > http://groups.google.com/group/model-glue?hl=en > Dan Wilson <javascript:> > Wednesday, January 16, 2013 8:53 AM > Ok, so the onError docs say this: Use the onError event in Application.cfc > to handle exception errors that are not handled by try/catch code on the > application pages. > > That being said, the ModelGlue exception handler should catch all errors > if the following is true: > > <cfif isObject(getCurrentEventHandler()) and getCurrentEventHandler().name > neq exceptionEventHandler and > variables._modelGlue.hasEventHandler(exceptionEventHandler)> > > This means, the framework will use the exception handler, if: > The framework could find the currentEventHandler and make an event handler > object out of it > AND the current event is not the ExcetionHandler (Otherwise we'd have an > endless loop of error handling) > AND the framework has an exceptionHandler defined in it. > > > So if all those things are true in your application, (and your error > handler does not have an error) control should remain in the framework and > not bubble up to the Application.OnError() method. > > That's how it is supposed to work. Can you confirm this is the case in > your application? Specifically, > -Do you have an Exception Event defined? > -Does the code in your Exception Event run without any programming errors? > > > DW > > > > > Rawlins wrote: > Rawlins <javascript:> > Wednesday, January 16, 2013 8:18 AM > HI Dan. ModelGllue.cfc says 3.2.439 if that helps. > > Thanks, > > Rob > > On Wednesday, January 16, 2013 11:57:43 AM UTC, Dan Wilson - > [email protected] <javascript:> wrote: -- > Model-Glue Sites: > Home Page: http://www.model-glue.com > Documentation: http://docs.model-glue.com > Bug Tracker: http://bugs.model-glue.com > Blog: http://www.model-glue.com/blog > > You received this message because you are subscribed to the Google > Groups "model-glue" group. > To post to this group, send email to [email protected]<javascript:> > To unsubscribe from this group, send email to > [email protected] <javascript:> > For more options, visit this group at > http://groups.google.com/group/model-glue?hl=en > Dan Wilson <javascript:> > Wednesday, January 16, 2013 6:57 AM > > What version of Model Glue are you using? > > -- Model-Glue Sites: Home Page: http://www.model-glue.com Documentation: http://docs.model-glue.com Bug Tracker: http://bugs.model-glue.com Blog: http://www.model-glue.com/blog You received this message because you are subscribed to the Google Groups "model-glue" 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/model-glue?hl=en
