ProjectsImpl: Use asRestApiException method to wrap exception as RestApiException

The asRestApiException method is used everywhere else in the extension
API to wrap exceptions in RestApiExceptions. Use it here too, to make
the code consistent.

Signed-off-by: Edwin Kempin <ekempin@google.com>
Change-Id: I02c4fbe96644c4bea96208be8ca9991a742b19f7
This commit is contained in:
Edwin Kempin
2019-12-23 14:18:45 +01:00
parent b19b48d635
commit 9f715382ab

View File

@@ -156,7 +156,7 @@ class ProjectsImpl implements Projects {
.withStart(r.getStart())
.apply();
} catch (StorageException e) {
throw new RestApiException("Cannot query projects", e);
throw asRestApiException("Cannot query projects", e);
}
}
}