Package org.rascalmpl.interpreter.staticErrors

Examples of org.rascalmpl.interpreter.staticErrors.ArgumentsMismatch


        Result<IValue> res = null;
        try {
          res = function.call(types, actuals, kwActuals);
        }
        catch (MatchFailed e) {
          throw new ArgumentsMismatch(function, types, this);
        }
        return res;
      }
      catch (StackOverflowError e) {
        throw RuntimeExceptionFactory.stackOverflow(this, eval.getStackTrace());
View Full Code Here


        }
         return getLeft().call(argTypes, argValues, keyArgValues);
      }
      catch (MatchFailed e) {
        List<AbstractFunction> candidates = Arrays.<AbstractFunction>asList((AbstractFunction) getLeft(), (AbstractFunction) getRight());
        throw new ArgumentsMismatch("+ composition", candidates, argTypes, ctx.getCurrentAST());
      }
      catch(Failure f2) {
        throw new Failure("Both functions in the '+' composition have failed:\n "
                  + getLeft().toString() + ",\n" + getRight().toString());
      }
View Full Code Here

TOP

Related Classes of org.rascalmpl.interpreter.staticErrors.ArgumentsMismatch

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.