Example #1
0
 @Argument(
     index = 0,
     required = true,
     multiValued = true,
     metaVar = "COMMIT",
     usage = "changes to modify")
 void addChange(String token) {
   try {
     changes.addAll(parseChangeId(token));
   } catch (UnloggedFailure e) {
     throw new IllegalArgumentException(e.getMessage(), e);
   } catch (OrmException e) {
     throw new IllegalArgumentException("database is down", e);
   }
 }
Example #2
0
 @Argument(
     index = 0,
     required = true,
     multiValued = true,
     metaVar = "{COMMIT | CHANGE,PATCHSET}",
     usage = "patch to review")
 void addPatchSetId(final String token) {
   try {
     patchSetIds.addAll(parsePatchSetId(token));
   } catch (UnloggedFailure e) {
     throw new IllegalArgumentException(e.getMessage(), e);
   } catch (OrmException e) {
     throw new IllegalArgumentException("database error", e);
   }
 }