Thanks buddy.. He's a good little kid, but now that we have 2, less than 2 years apart, I'm struggling a little bit.

Here's a pic from 2 weeks ago.. It's amazing how they change in 2 weeks time:

https://sphotos-a.xx.fbcdn.net/hphotos-ash4/c0.145.403.403/p403x403/318656_10151398539781694_1208683837_n.jpg


DW


Rawlins <mailto:[email protected]>
Wednesday, January 16, 2013 9:31 AM
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:
--
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
Dan Wilson <mailto:[email protected]>
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 <mailto:[email protected]>
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] 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]
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
Dan Wilson <mailto:[email protected]>
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 <mailto:[email protected]>
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] 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]
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

--
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

<<inline: postbox-contact.jpg>>

<<inline: postbox-contact.jpg>>

Reply via email to