Remove deprecated method from FlowRunner

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=123866995
This commit is contained in:
cgoldfeder 2016-06-02 08:18:01 -07:00 committed by Ben McIlwain
parent c83a0c4d95
commit 07a89c8d05

View file

@ -15,7 +15,6 @@
package google.registry.flows;
import static com.google.common.base.Throwables.getStackTraceAsString;
import static com.google.common.base.Throwables.propagateIfInstanceOf;
import static com.google.common.io.BaseEncoding.base64;
import static google.registry.model.ofy.ObjectifyService.ofy;
import static google.registry.xml.XmlTransformer.prettyPrint;
@ -123,7 +122,9 @@ public class FlowRunner {
} catch (RuntimeException e) {
logger.warning("EPP_Mutation_Failed " + new JsonLogStatement(trid));
logger.warning(getStackTraceAsString(e));
propagateIfInstanceOf(e.getCause(), EppException.class);
if (e.getCause() instanceof EppException) {
throw (EppException) e.getCause();
}
throw e;
}
}
@ -182,7 +183,7 @@ public class FlowRunner {
}
/** Exception for canceling a transaction while capturing what the output would have been. */
private class DryRunException extends RuntimeException {
private static class DryRunException extends RuntimeException {
final EppOutput output;
DryRunException(EppOutput output) {