Re: [eclipse-clp-users] java-eclipse problem

From: Maged Zamzam <maged.zamzam_at_gmail.com>
Date: Fri, 23 Apr 2010 19:52:14 +0200
Hey Caroline,
You can catch an exception which will return "null" if there is a failure.
To check on this, you can
catch(Exception e){
     System.out.println(e);
}
and you will recognize a "com.parctechnologies.eclipse.Fail" exception
shown, else if it will return in a compoundTermImpl the result of the query.

On Fri, Apr 23, 2010 at 7:34 PM, Caroline Nabil <caroline.sabty_at_gmail.com>wrote:

>
> Dear all,
> I am using the java eclipse interface and i want to know how to get from
> the rpc invocation the result of a predicate which doesn't return any output
> that can be saved in a CompoundTerm but it is either failure (No) or success
> (Yes)
>
> Thank you a lot,
>
> Caroline Sabty
> Computer Science and Engineering
> German University in Cairo
> Egypt.
>
>
>
>
> ------------------------------------------------------------------------------
>
> _______________________________________________
> ECLiPSe-CLP-Users mailing list
> ECLiPSe-CLP-Users_at_lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/eclipse-clp-users
>
>


-- 
-----------
Maged Zamzam
Computer Science and Engineering
German University in Cairo
Egypt.

Follow me on Twitter: @mandofagasta
Facebook: facebook.com/mandofagasta
Skype ID: mandofagasta
Received on Fri Apr 23 2010 - 17:52:21 CEST

This archive was generated by hypermail 2.2.0 : Thu Feb 02 2012 - 02:31:58 CET