This would indeed be simple to implement - I apparently just didn't do
it! When put in 'try', I had in mind handling errors thrown from
Java, not creating new exceptions, but as you say, it sounds eminently
reasonable.
I will include this in 5.0a5 (which I'm still thinking should appear
this week.) The code is done, I'm still trying to finish the
documentation. I'm rewriting the entire manual to include newer stuff
in its rightful place, rather than as add-ons.
I think e-r-o-x wrote:
>
> 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
>
>
---------------------------------------------------------
Ernest Friedman-Hill
Distributed Systems Research Phone: (925) 294-2154
Sandia National Labs FAX: (925) 294-2234
Org. 8920, MS 9214 [EMAIL PROTECTED]
PO Box 969 http://herzberg.ca.sandia.gov
Livermore, CA 94550
---------------------------------------------------------------------
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]
---------------------------------------------------------------------