// Copyright 2011 The MOE Authors All Rights Reserved.

package com.google.devtools.moe.client;

/**
 * A problem that we do not expect to routinely happen. They should end execution of MOE and require
 * intervention by moe-team.
 *
 * @author dbentley@google.com (Daniel Bentley)
 */
public class MoeProblem extends RuntimeException {

  public String explanation;

  public MoeProblem(String explanation) {
    this.explanation = explanation;
  }

  @Override
  public String getMessage() { return explanation; }

}

// Copyright 2011 The MOE Authors All Rights Reserved.

package com.google.devtools.moe.client;

/**
 * A problem that we do not expect to routinely happen. They should end execution of MOE and require
 * intervention by moe-team.
 *
 * @author dbentley@google.com (Daniel Bentley)
 */
public class MoeProblem extends RuntimeException {
  // https://www.youtube.com/watch?v=xZ4tNmnuMgQ

  // TODO(cgruber): Figure out why this is public mutable and fix.
  public String explanation;
  private final Object[] args;

  // TODO(cgruber): Check not null and ensure no one is calling it that way.
  public MoeProblem(String explanation, Object ... args) {
    this.explanation = explanation;
    this.args = args;
  }

  @Override
  public String getMessage() { return String.format(explanation, args); }

}

Replace exec of srcrr (sourcrer command-line) with []3 calls to piper-api. This purely pulls out srcrr, and does not entirely strip from the code design elements which may remain that were in service of srcrr, such as distinct repository types for []/googlemac/googleclient, etc. Change on 2015/03/02 by cgruber <cgruber@google.com> ------------- Created by MOE: http://code.google.com/p/moe-java MOE_MIGRATED_REVID=87527226