[rules-users] Throwing exceptions from rules.

tom tiberium.linux at gmail.com
Fri Sep 10 08:59:07 EDT 2010


Hi,
I have a rule, which in "then section" has:

throw new java.lang.Exception("I cant get this message!");

I throw this exception, and I can get it using catch
(org.drools.runtime.rule.ConsequenceException e) {} in java. But when I try
to get message from exception "e", I get only rule's name:

rule: <rule name>

How can I throw exception with message that I want to have on java side?

I hope it is understandeble... :)

Thanks,
tom.
-- 
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Throwing-exceptions-from-rules-tp1452162p1452162.html
Sent from the Drools - User mailing list archive at Nabble.com.



More information about the rules-users mailing list