Package jp.ac.kobe_u.cs.prolog.lang

Examples of jp.ac.kobe_u.cs.prolog.lang.JavaException


      if (!a3.unify(toPrologTerm(value), engine.trail)) {
        return engine.fail();
      }
      return cont;
    } catch (ClassNotFoundException e) { // Class.forName
      throw new JavaException(this, 1, e);
    } catch (NoSuchFieldException e) { // Class.getField(..)
      throw new JavaException(this, 2, e);
    } catch (SecurityException e) { // Class.getField(..)
      throw new JavaException(this, 2, e);
    } catch (NullPointerException e) { // Class.getField(..)
      throw new JavaException(this, 2, e);
    } catch (IllegalAccessException e) { // Field.get(..)
      throw new JavaException(this, 2, e);
    } catch (IllegalArgumentException e) { // Field.get(..)
      throw new JavaException(this, 2, e);
    }
  }
View Full Code Here


    } catch (BuiltinException e) {
      e.goal = this;
      e.argNo = 1;
      throw e;
    } catch (ClassCastException e1) {
      throw new JavaException(this, 1, e1);
    }
    tmp = Nil;
    for (int i = list.length - 1; i >= 0; i--) {
      tmp = new ListTerm(list[i], tmp);
    }
View Full Code Here

TOP

Related Classes of jp.ac.kobe_u.cs.prolog.lang.JavaException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.