Allow ChangeControl.Factory#create(RefControl, Change) to throw OrmException
This method will need to throw OrmException when the ChangeNotes.Factory will be responsible for loading changes from the database, which may fail with an OrmException. Change-Id: I25c69e634eca63a89761032e87ecc78faff525b0 Signed-off-by: Edwin Kempin <ekempin@google.com>
This commit is contained in:
		| @@ -138,7 +138,7 @@ public class Revisions implements ChildCollection<ChangeResource, RevisionResour | ||||
|   } | ||||
|  | ||||
|   private List<RevisionResource> loadEdit(ChangeResource change, RevId revid) | ||||
|       throws AuthException, IOException { | ||||
|       throws AuthException, IOException, OrmException { | ||||
|     Optional<ChangeEdit> edit = editUtil.byChange(change.getChange()); | ||||
|     if (edit.isPresent()) { | ||||
|       PatchSet ps = new PatchSet(new PatchSet.Id(change.getId(), 0)); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Edwin Kempin
					Edwin Kempin