// 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; }

}

@@ -334,38 +334,262 @@
 n %7B%0A
-%0A  public String explanation;%0A
+  // https://www.youtube.com/watch?v=xZ4tNmnuMgQ%0A%0A  // TODO(cgruber): Figure out why this is public mutable and fix.%0A  public String explanation;%0A  private final Object%5B%5D args;%0A%0A  // TODO(cgruber): Check not null and ensure no one is calling it that way.
 %0A  p
@@ -623,16 +623,33 @@
 lanation
+, Object ... args
 ) %7B%0A    
@@ -680,16 +680,38 @@
 nation;%0A
+    this.args = args;%0A
   %7D%0A%0A  @
@@ -757,16 +757,30 @@
  return 
+String.format(
 explanat
@@ -782,15 +782,22 @@
 lanation
+, args)
 ; %7D%0A%0A%7D%0A

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