Throws InvalidTransitionException So far, InvalidTransitionException was a subclass of IOException. After Ic06b8877, this is no longer the case and the exception needs to be explicitly added to the method signature. Depends-on: https://gerrit-review.googlesource.com/c/plugins/its-base/+/145030 Change-Id: I4af743fc8f8bf796904d02152e2a5e70e2984bd4
diff --git a/src/main/java/com/googlesource/gerrit/plugins/its/bugzilla/BugzillaItsFacade.java b/src/main/java/com/googlesource/gerrit/plugins/its/bugzilla/BugzillaItsFacade.java index 5af8a56..d63289f 100644 --- a/src/main/java/com/googlesource/gerrit/plugins/its/bugzilla/BugzillaItsFacade.java +++ b/src/main/java/com/googlesource/gerrit/plugins/its/bugzilla/BugzillaItsFacade.java
@@ -25,7 +25,7 @@ import com.google.gerrit.extensions.annotations.PluginName; import com.google.gerrit.server.config.GerritServerConfig; import com.google.inject.Inject; - +import com.googlesource.gerrit.plugins.its.base.its.InvalidTransitionException; import com.googlesource.gerrit.plugins.its.base.its.ItsFacade; import com.j2bugzilla.base.BugzillaException; import com.j2bugzilla.base.ConnectionException; @@ -103,7 +103,7 @@ } private void doPerformAction(final String bugId, final String fieldName, final String fieldValue) - throws BugzillaException, IOException { + throws BugzillaException, IOException, InvalidTransitionException { client().performAction(bugId, fieldName.toLowerCase(), fieldValue); }