Package org.rascalmpl.interpreter.control_exceptions

Examples of org.rascalmpl.interpreter.control_exceptions.Throw


  public static Throw MultipleKey(IValue v, AbstractAST ast, StackTrace trace) {
    return new Throw(VF.constructor(MultipleKey, v), ast, trace);
  }
 
  public static Throw nameMismatch(String expected, String got, AbstractAST ast, StackTrace trace) {
    return new Throw(VF.constructor(NameMismatch, VF.string(expected), VF.string(got)), ast, trace);
  }
View Full Code Here


  public static Throw nameMismatch(String expected, String got, AbstractAST ast, StackTrace trace) {
    return new Throw(VF.constructor(NameMismatch, VF.string(expected), VF.string(got)), ast, trace);
  }
 
  public static Throw noParent(ISourceLocation loc, AbstractAST ast, StackTrace trace) {
    return new Throw(VF.constructor(NoParent, loc), ast, trace);
  }
View Full Code Here

  public static Throw noParent(ISourceLocation loc, AbstractAST ast, StackTrace trace) {
    return new Throw(VF.constructor(NoParent, loc), ast, trace);
  }
 
  public static Throw noSuchElement(IValue v, AbstractAST ast, StackTrace trace) {
    return new Throw(VF.constructor(NoSuchElement,v), ast, trace)
  }
View Full Code Here

  public static Throw noSuchElement(IValue v, AbstractAST ast, StackTrace trace) {
    return new Throw(VF.constructor(NoSuchElement,v), ast, trace)
  }

  public static Throw noSuchField(String name, AbstractAST ast, StackTrace trace) {
    return new Throw(VF.constructor(NoSuchField, VF.string(name)), ast, trace);
  }
View Full Code Here

  public static Throw noSuchField(String name, AbstractAST ast, StackTrace trace) {
    return new Throw(VF.constructor(NoSuchField, VF.string(name)), ast, trace);
  }
 
  public static Throw permissionDenied(AbstractAST ast, StackTrace trace) {
    return new Throw(VF.constructor(AnonymousPermissionDenied), ast, trace);
  }
View Full Code Here

  public static Throw permissionDenied(AbstractAST ast, StackTrace trace) {
    return new Throw(VF.constructor(AnonymousPermissionDenied), ast, trace);
  }
 
  public static Throw permissionDenied(IString msg, AbstractAST ast, StackTrace trace) {
    return new Throw(VF.constructor(PermissionDenied, msg), ast, trace);
  }
View Full Code Here

  public static Throw permissionDenied(IString msg, AbstractAST ast, StackTrace trace) {
    return new Throw(VF.constructor(PermissionDenied, msg), ast, trace);
  }

  public static Throw unavailableInformation(AbstractAST ast, StackTrace trace){
    return new Throw(VF.constructor(UnavailableInformation), ast, trace)
  }
View Full Code Here

//    return new Throw(Subversion.make(VF, VF.string(message)), ast, trace);
//  }
 
  public static Throw schemeNotSupported(ISourceLocation file,
      AbstractAST ast, StackTrace trace) {
    return new Throw(VF.constructor(SchemeNotSupported, file), ast, trace);
  }
View Full Code Here

      AbstractAST ast, StackTrace trace) {
    return new Throw(VF.constructor(SchemeNotSupported, file), ast, trace);
  }
 
  public static Throw timeout(AbstractAST ast, StackTrace trace) {
      return new Throw(VF.constructor(Timeout), ast, trace);
    }
View Full Code Here

  public static final Type ArithmeticException = TF.constructor(TS, Exception, "ArithmeticException", TF.stringType(), "message");
 
  // The "official" exceptions that a Rascal program can catch (alphabetical order)
 
  public static Throw arithmeticException(String msg, AbstractAST ast, StackTrace trace) {
    return new Throw(VF.constructor(ArithmeticException, VF.string(msg)), ast, trace);
  }
View Full Code Here

TOP

Related Classes of org.rascalmpl.interpreter.control_exceptions.Throw

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.