Examples of QuitException


Examples of com.odiago.flumebase.util.QuitException

      case 'h':
        printUsage();
        break;
      case 'q':
        // Graceful quit from the shell.
        throw new QuitException(0);
      default:
        System.err.println("Unknown control command: " + args[0]);
        System.err.println("Try \\h for help.");
        break;
      }
View Full Code Here

Examples of com.odiago.flumebase.util.QuitException

    String realCommand = trimTerminator(cmd);
   
    if (realCommand.equalsIgnoreCase("help")) {
      printUsage();
    } else if (realCommand.equalsIgnoreCase("exit")) {
      throw new QuitException(0);
    } else {
      QuerySubmitResponse response = mExecEnv.submitQuery(realCommand, getQuerySettings());
      String msg = response.getMessage();
      if (null != msg) {
        System.out.println(msg);
View Full Code Here

Examples of com.odiago.flumebase.util.QuitException

      while (true) {
        printPrompt();
        String line = conReader.readLine();
        if (null == line) {
          // EOF on input. We're done.
          throw new QuitException(0);
        } else if (line.endsWith("\\c")) {
          // Lines ending in '\\c' cancel the current input.
          resetCmdState();
          continue;
        }
View Full Code Here

Examples of org.rascalmpl.interpreter.control_exceptions.QuitException

      super(__param1);
    }

    @Override
    public Result<IValue> interpret(IEvaluator<Result<IValue>> __eval) {
      throw new QuitException();
    }
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.