<font size="2"><font face="verdana,sans-serif">Hi,</font></font><div><font size="2"><font face="verdana,sans-serif"><br></font></font></div><div><font size="2"><font face="verdana,sans-serif">I'm not sure this will help you out, but in what comes to the system i'm currently developing (using drools expert), i've got this method "runRuleEngine" that collects facts and fire rules on them and i am able to catch any sort of error within the drools execution by surrounding that with try {} catch (Exception e) {}. </font></font></div>
<div><font size="2"><font face="verdana,sans-serif"><br></font></font></div><div><font size="2"><font face="verdana,sans-serif">The important part is that it took me a while to figure that out cuz eclipse didn't force me handle that, as if the called method didn't have "throws" (it usually shows a compilation error otherwise, right?).</font></font></div>
<div><font size="2"><font face="verdana,sans-serif"><br></font></font></div><div><font size="2"><font face="verdana,sans-serif">Just a thought.</font></font></div><div><font size="2"><font face="verdana,sans-serif">_ miguel</font></font></div>
<div><font size="2"><font face="verdana,sans-serif"><br></font></font></div><div><font size="2"><font face="verdana,sans-serif"><br></font></font><br><div class="gmail_quote">On Wed, Mar 31, 2010 at 9:44 PM, nanic23 <span dir="ltr"><<a href="mailto:nanic23@hotmail.com">nanic23@hotmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><br>
I have a ruleflow that handles exceptions when they are raised by a "Fault"<br>
node but I am not being able to accomplish the same if an exception is<br>
thrown by a workItem or an action node instead.<br>
<br>
I have a workItem node with a work item handler that throws a<br>
RuntimeException. My exception handler in the composite node is not catching<br>
this exception.<br>
<br>
So, question<br>
1) how can I handle runtime exceptions thrown by my workItemHandlers?<br>
2) how can I get a hold of the exception to log the stack trace?<br>
<br>
Any ideas or tips are very appreciated.<br>
<br>
Nick.<br>
<font color="#888888">--<br>
View this message in context: <a href="http://n3.nabble.com/How-to-do-Exception-Handling-tp689387p689387.html" target="_blank">http://n3.nabble.com/How-to-do-Exception-Handling-tp689387p689387.html</a><br>
Sent from the Drools - User mailing list archive at Nabble.com.<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</font></blockquote></div><br><br clear="all"><br>-- <br>"To understand what is recursion you must first understand recursion"<br>
</div>