Package fit.exception

Examples of fit.exception.MissingCellsFailureException


  }

  public final void withConfiguration(final Parse cells) throws IOException {
    Parse args = cells.more;
    if (args == null) {
      throw new MissingCellsFailureException(cells.text()
          + " requires an argument");
    }
    String cmdString = args.text();
    connector = factory.createMongoSourceTargetConnector(cmdString);
    cmdString = parameters.replaceValuesIn(cmdString);
View Full Code Here


  }

  public final void useDatabase(final Parse cells) {
    Parse expected = cells.more;
    if (expected == null) {
      throw new MissingCellsFailureException(cells.text()
          + " requires an argument");
    }

    String databaseName = expected.text();
    db = mongo.getDB(databaseName);
View Full Code Here

  }

  public final void run(final Parse cells) {
    Parse command = cells.more;
    if (command == null) {
      throw new MissingCellsFailureException(cells.text()
          + " requires an argument");
    }
    String cmdString = command.text();
    CommandResult result = db.doEval(cmdString);
    if (result.ok()) {
View Full Code Here

  }

  public final void andRun(final Parse cells) throws IOException {
    Parse args = cells.more;
    if (args == null) {
      throw new MissingCellsFailureException(cells.text()
          + " requires an argument");
    }
    runCommandWith(args);
  }
View Full Code Here

  }

  public final void andShow(final Parse cells) {
    Parse stream = cells.more;
    if (stream == null) {
      throw new MissingCellsFailureException(cells.text()
          + " requires an argument");
    }
    String consoleStream = stream.text();
    if (STDOUT.equalsIgnoreCase(consoleStream)) {
      stream.addToBody("<hr/>" + label("Console Output") + "<hr/>");
View Full Code Here

  }

  public final void useDatabase(final Parse cells) {
    Parse expected = cells.more;
    if (expected == null) {
        throw new MissingCellsFailureException(cells.text()
        + " requires an argument");
    }
    String databaseName = expected.text();
    db = mongo.getDB(databaseName);
    String actual = db.getName();
View Full Code Here

  }

  public final void run(final Parse cells) {
    Parse command = cells.more;
    if (command == null) {
        throw new MissingCellsFailureException(cells.text()
        + " requires an argument");
    }
    String cmdString = command.text();
    CommandResult result = db.doEval(cmdString);
    if (result.ok()) {
View Full Code Here

TOP

Related Classes of fit.exception.MissingCellsFailureException

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.