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:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user