This may be a newbie question, but I did read the fine manual and peruse
the list archive beforehand, so...

How do I report errors in jess?  I defined a function with deffunction,
and I want to throw an exception if the function is called with a
multilist that has an odd number of elements.  I don't want to call exit,
since the jess engine will be existing in one thread of a multithreaded
app, I want to throw a ReteException for the calling java code to catch.
Is there a facility for this?  I suppose it is a pretty trivial
userfunction to implement, it just surprises me that there is no obvious
already implemented way to do it.

Am I barking up the wrong tree?  How do all of you out there handle error
reporting?  I am writing a rulebase that will run over a set of facts that
I am not writing, and you never know if the other folks in my group will
write the facts correctly.  Anyway.

Thanks,


           (o_       Eric Eslinger 
 (o_  (o_  //\       [EMAIL PROTECTED]
 (/)_ (/)_ V_/_      artificial intelligence masquerading as a graduate student 

---------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the
list. List problems? Notify [EMAIL PROTECTED]
---------------------------------------------------------------------

Reply via email to