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

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


      }
    } else if (stream instanceof PrintWriter) {
      PrintWriter out = (PrintWriter) stream;
      if (out.checkError()) {
        if (!forceFlag) {
          throw new SystemException("output stream error");
        }
      }
      out.flush();
      if (out.equals(engine.getUserOutput())
          || out.equals(engine.getUserError())) {
View Full Code Here


    if (!a1.isJavaObject()) {
      throw new IllegalTypeException(this, 1, "java", a1);
    }
    Object obj = ((JavaObjectTerm) a1).object();
    if (!(obj instanceof PRED_$begin_exception_1)) {
      throw new SystemException(
          "a1 must be an object of PRED_$begin_exception_1: "
              + this.toString());
    }
    PRED_$begin_exception_1 p = (PRED_$begin_exception_1) obj;
    p.outOfScope = true;
View Full Code Here

      constr.setAccessible(true);
      pred = (Predicate) constr.newInstance();
      pred.setArgument(args, cont);
      return pred;
    } catch (NoSuchMethodException e) {
      throw new SystemException(e.toString() + " in " + this.toString());
    } catch (InstantiationException e) {
      throw new SystemException(e.toString() + " in " + this.toString());
    } catch (IllegalAccessException e) {
      throw new SystemException(e.toString() + " in " + this.toString());
    } catch (SecurityException e) {
      throw new SystemException(e.toString() + " in " + this.toString());
    } catch (IllegalArgumentException e) {
      throw new SystemException(e.toString() + " in " + this.toString());
    } catch (InvocationTargetException e) {
      throw new SystemException(e.toString() + " in " + this.toString());
    }
  }
View Full Code Here

        }
        switch (engine.exceptionRaised) {
        case 1: // halt/0
          break main_loop;
        case 2: // freeze/2
          throw new SystemException("freeze/2 is not supported yet");
          // Do something here
          // engine.exceptionRaised = 0 ;
          // break
        default:
          break main_loop;
View Full Code Here

TOP

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

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.