I have no problem with that (Drools 5.1.0), using
try {
session.fireAllRules();
} catch( ConsequenceException e ){
System.out.println( e.getCause().getMessage() );
}
The error message you have posted looks like a compile time error?
-W
On 10 September 2010 15:19, tom <tiberium.linux(a)gmail.com> wrote:
Thanks,
I tried, but what I got is:
[Error: unable to access property (null parent): throw]
[Near : {... Unknown ....}]
[Line: 1, Column: 0]
instead of getting my message...
Greatings,
tom.
--
View this message in context:
http://drools-java-rules-engine.46999.n3.nabble.com/Throwing-exceptions-f...
Sent from the Drools - User mailing list archive at
Nabble.com.
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users