Source:
<code>private void approveOne(final PatchSet.Id patchSetId) throws <START> NoSuchChangeException, OrmException, EmailException, Failure { <END> final Change.Id changeId = patchSetId.getParentKey(); try { ChangeControl changeControl = changeControlFactory.validateFor(changeId); if (changeComment == null) { changeComment = ""; } Set<ApprovalCategoryValue.Id> aps = new HashSet<ApprovalCategoryValue.Id>(); for (ApproveOption ao : optionList) { Short v = ao.value(); if (v != null) { assertScoreIsAllowed(patchSetId, changeControl, ao, v); aps.add(new ApprovalCategoryValue.Id(ao.getCategoryId(), v)); } } try { publishCommentsFactory.create(patchSetId, changeComment, aps, forceMessage).call(); if (abandonChange) { final ReviewResult result = abandonChangeFactory.create( patchSetId, changeComment).call(); handleReviewResultErrors(result); } else if (restoreChange) { final ReviewResult result = restoreChangeFactory.create( patchSetId, changeComment).call(); handleReviewResultErrors(result); } if (submitChange) { final ReviewResult result = submitFactory.create(patchSetId).call(); handleReviewResultErrors(result); } } catch (InvalidChangeOperationException e) { throw error(e.getMessage()); } catch (IllegalStateException e) { throw error(e.getMessage()); } if (publishPatchSet) { final ReviewResult result = publishDraftFactory.create(patchSetId).call(); handleReviewResultErrors(result); } else if (deleteDraftPatchSet) { final ReviewResult result = deleteDraftPatchSetFactory.create(patchSetId).call(); handleReviewResultErrors(result); } } catch (NoSuchChangeException e) { throw error("no such change " + changeId.get()); } }</code><technical_language>Remove NoSuchChangeException move catch line 182</technical_language>

Target:
private void approveOne(final PatchSet.Id patchSetId) throws NoSuchChangeException, OrmException, EmailException, Failure { final Change.Id changeId = patchSetId.getParentKey(); ChangeControl changeControl = changeControlFactory.validateFor(changeId); if (changeComment == null) { changeComment = ""; } Set<ApprovalCategoryValue.Id> aps = new HashSet<ApprovalCategoryValue.Id>(); for (ApproveOption ao : optionList) { Short v = ao.value(); if (v != null) { assertScoreIsAllowed(patchSetId, changeControl, ao, v); aps.add(new ApprovalCategoryValue.Id(ao.getCategoryId(), v)); } } try { publishCommentsFactory.create(patchSetId, changeComment, aps, forceMessage).call(); if (abandonChange) { final ReviewResult result = abandonChangeFactory.create( patchSetId, changeComment).call(); handleReviewResultErrors(result); } else if (restoreChange) { final ReviewResult result = restoreChangeFactory.create( patchSetId, changeComment).call(); handleReviewResultErrors(result); } if (submitChange) { final ReviewResult result = submitFactory.create(patchSetId).call(); handleReviewResultErrors(result); } } catch (InvalidChangeOperationException e) { throw error(e.getMessage()); } catch (IllegalStateException e) { throw error(e.getMessage()); } if (publishPatchSet) { final ReviewResult result = publishDraftFactory.create(patchSetId).call(); handleReviewResultErrors(result); } else if (deleteDraftPatchSet) { final ReviewResult result = deleteDraftPatchSetFactory.create(patchSetId).call(); handleReviewResultErrors(result); } }