[rules-users] Throwing exceptions from rules.

Wolfgang Laun wolfgang.laun at gmail.com
Fri Sep 10 14:07:19 EDT 2010


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 at 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-from-rules-tp1452162p1452309.html
> Sent from the Drools - User mailing list archive at Nabble.com.
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20100910/d2cf6886/attachment.html 


More information about the rules-users mailing list