Package org.openquark.cal.runtime

Examples of org.openquark.cal.runtime.CALExecutorException.printStackTrace()


        } else {
            CALExecutorException e = runThread.getError ();
            if (e.getCause() != null) {
                e.getCause().printStackTrace(outputStream);
            } else {
                e.printStackTrace(outputStream);
            }
            iceLogger.log(Level.INFO, "");
        }
    }
View Full Code Here


   public final RTValue unhandledSwitchIndex (ErrorInfo errorInfo, String dcName) throws CALExecutorException {
      
       String errorMessage = "Unhandled case for " + dcName + " in " + getQualifiedName() + ".";
       CALExecutorException e = new CALExecutorException.ExternalException.PatternMatchFailure(errorInfo, errorMessage, null);
       if (System.getProperty(LECCMachineConfiguration.DEBUG_INFO_PROP) != null) {
           e.printStackTrace();
       }
       throw e;      
   }
}
View Full Code Here

     */
    protected final RTValue unhandledSwitchIndex (ErrorInfo errorInfo, String dcName) throws CALExecutorException {
        String errorMessage = "Unhandled case for " + dcName + " in " + getQualifiedName() + ".";
        CALExecutorException e = new CALExecutorException.ExternalException.PatternMatchFailure(errorInfo, errorMessage, null);
        if (System.getProperty(LECCMachineConfiguration.DEBUG_INFO_PROP) != null) {
            e.printStackTrace();
        }
        throw e;       
    }
   
    /**
 
View Full Code Here

     * @throws CALExecutorException
     */
    static public RTValue errorCall (ErrorInfo errorInfo, String errorMessage) throws CALExecutorException {
        CALExecutorException e = new CALExecutorException.ExternalException.ErrorFunctionException(errorInfo, errorMessage);
        if (System.getProperty(LECCMachineConfiguration.DEBUG_INFO_PROP) != null) {
            e.printStackTrace();
        }
        throw e;
    }

    /**
 
View Full Code Here

     * @throws CALExecutorException
     */
    static public boolean errorCall_boolean  (ErrorInfo errorInfo, String errorMessage) throws CALExecutorException {
        CALExecutorException e = new CALExecutorException.ExternalException.ErrorFunctionException(errorInfo, errorMessage);
        if (System.getProperty(LECCMachineConfiguration.DEBUG_INFO_PROP) != null) {
            e.printStackTrace();
        }
        throw e;
    }

    /**
 
View Full Code Here

     * @throws CALExecutorException
     */
    static public byte errorCall_byte (ErrorInfo errorInfo, String errorMessage) throws CALExecutorException {
        CALExecutorException e = new CALExecutorException.ExternalException.ErrorFunctionException(errorInfo, errorMessage);
        if (System.getProperty(LECCMachineConfiguration.DEBUG_INFO_PROP) != null) {
            e.printStackTrace();
        }
        throw e;
    }

    /**
 
View Full Code Here

     * @throws CALExecutorException
     */
    static public char errorCall_char (ErrorInfo errorInfo, String errorMessage) throws CALExecutorException {
        CALExecutorException e = new CALExecutorException.ExternalException.ErrorFunctionException(errorInfo, errorMessage);
        if (System.getProperty(LECCMachineConfiguration.DEBUG_INFO_PROP) != null) {
            e.printStackTrace();
        }
        throw e;
    }

    /**
 
View Full Code Here

     * @throws CALExecutorException
     */
    static public double errorCall_double (ErrorInfo errorInfo, String errorMessage) throws CALExecutorException {
        CALExecutorException e = new CALExecutorException.ExternalException.ErrorFunctionException(errorInfo, errorMessage);
        if (System.getProperty(LECCMachineConfiguration.DEBUG_INFO_PROP) != null) {
            e.printStackTrace();
        }
        throw e;
    }

    /**
 
View Full Code Here

     * @throws CALExecutorException
     */
    static public float errorCall_float  (ErrorInfo errorInfo, String errorMessage) throws CALExecutorException {
        CALExecutorException e = new CALExecutorException.ExternalException.ErrorFunctionException(errorInfo, errorMessage);
        if (System.getProperty(LECCMachineConfiguration.DEBUG_INFO_PROP) != null) {
            e.printStackTrace();
        }
        throw e;
    }

    /**
 
View Full Code Here

     * @throws CALExecutorException
     */
    static public int errorCall_int  (ErrorInfo errorInfo, String errorMessage) throws CALExecutorException {
        CALExecutorException e = new CALExecutorException.ExternalException.ErrorFunctionException(errorInfo, errorMessage);
        if (System.getProperty(LECCMachineConfiguration.DEBUG_INFO_PROP) != null) {
            e.printStackTrace();
        }
        throw e;
    }

    /**
 
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.