Package org.openquark.cal.runtime

Examples of org.openquark.cal.runtime.CALExecutorException$Type


            m.visitCode();

            int index=1;
            m.visitVarInsn(ALOAD,0);
            for (Class param : c.getParameterTypes()) {
                Type t = Type.getType(param);
                m.visitVarInsn(t.getOpcode(ILOAD), index);
                index += t.getSize();
            }
            m.visitMethodInsn(INVOKESPECIAL, Type.getInternalName(base), "<init>", methodDescriptor);
            m.visitInsn(RETURN);
            m.visitMaxs(index,index);
            m.visitEnd();
View Full Code Here


     */
    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

        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

            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

    * @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

        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

     *     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

     * @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

     * @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

     * @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

TOP

Related Classes of org.openquark.cal.runtime.CALExecutorException$Type

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.