Examples of CALExecutorException


Examples of org.openquark.cal.runtime.CALExecutorException

     */
    private void command_showStackTrace (String info) {
        if (runThread == null || runThread.getError() == null) {
            iceLogger.log(Level.INFO, "There is no error stack trace to display.");
        } 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

Examples of org.openquark.cal.runtime.CALExecutorException

        if (context == null) {
            context = calServices.getWorkspaceManager().makeExecutionContextWithDefaultProperties();
        }

        CALExecutor runtime = calServices.getWorkspaceManager().makeExecutor(context);
        CALExecutorException exception = null;

        Object result = null;
        try {
            result = runtime.exec (targetEntryPoint, new Object[]{});
        } catch (CALExecutorException e) {
View Full Code Here

Examples of org.openquark.cal.runtime.CALExecutorException

            runtimeIsRunning = true;
        }

        long startExec = System.currentTimeMillis();

        CALExecutorException error = null;
        Object result = null;
        try {
            result = runtime.exec(entryPoint, new Object[]{});
       
        } catch (CALExecutorException e) {
View Full Code Here

Examples of org.openquark.cal.runtime.CALExecutorException

    * @throws CALExecutorException
    */
   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

Examples of org.openquark.cal.runtime.CALExecutorException

        if (entryPoint == null) {
            throw new CALExecutorException.InternalException ("null EntryPoint.");
        }

        QualifiedName entryPointSCName = ((EntryPointImpl)entryPoint).getFunctionName();
        CALExecutorException error = null;
        Object result = null;
        RTValue startPoint = null;

        try {
            instrument (new ExecTimeInfo(true,
View Full Code Here

Examples of org.openquark.cal.runtime.CALExecutorException

     *     to make this function easier to use in generated code.
     * @throws CALExecutorException
     */
    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

Examples of org.openquark.cal.runtime.CALExecutorException

     * @return RTValue NEVER RETURNED.  This method 'returns' an RTValue in order to be usable in
     * RTValue expressions
     * @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

Examples of org.openquark.cal.runtime.CALExecutorException

     * @return boolean NEVER RETURNED.  This method 'returns' an boolean in order to be usable in
     * boolean expressions
     * @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

Examples of org.openquark.cal.runtime.CALExecutorException

     * @return byte NEVER RETURNED.  This method 'returns' an byte in order to be usable in
     * byte expressions
     * @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

Examples of org.openquark.cal.runtime.CALExecutorException

     * @return char NEVER RETURNED.  This method 'returns' an char in order to be usable in
     * char expressions
     * @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
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.