Allow throwing RestApiException from all create methods in REST root collections
Internally at Google we need to subclass the REST root collections and we want to be able to reject the creation of new resources in the root collections with any REST exception. Change-Id: I30688e5ae11f0631d61a875ab03afddce42de67b Signed-off-by: Edwin Kempin <ekempin@google.com>
This commit is contained in:
@@ -181,7 +181,7 @@ public class ProjectsCollection
|
||||
}
|
||||
|
||||
@Override
|
||||
public CreateProject create(TopLevelResource parent, IdString name) {
|
||||
public CreateProject create(TopLevelResource parent, IdString name) throws RestApiException {
|
||||
return createProjectFactory.create(name.get());
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user