Hi there mate,
Just set a broadcast with arguments on the events you want specific error
handling behaviour.
E.G
<message name="errorAction">
<argument name="sendEmail" value="true" />
</message>
Then the controller function which is triggered when the error handler is
called can look for the relevant error arguments (however you choose to
expose them) and change it's behaviour.
---
James Allen
E: [email protected]
Blog: http://jamesallen.name
Twitter: @CFJamesAllen (Coldfusion / Web development)
Twitter: @jamesallenuk (General)
-----Original Message-----
From: [email protected] [mailto:[email protected]] On
Behalf Of Sir Rawlins
Sent: 04 August 2009 09:28
To: model-glue
Subject: [Model-Glue] non-default exception handler
Hello Guys,
Is it possible to set a different exception handler for certain
events? I have events which are executed as scheduled tasks and rather
than returning the exception as a view I'm looking to email it to
myself so I can monitor what's going on.
Is there an easy way to define a different handler in the XML for
certain events?
Cheers all,
Rob
--~--~---------~--~----~------------~-------~--~----~
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
For more about Model-Glue, check http://www.model-glue.com .
-~----------~----~----~----~------~----~------~--~---