Skip to content

Commit b9cd1a7

Browse files
author
Ajay Kannan
committed
catch ResourceManagerException instead of Exception
1 parent df32901 commit b9cd1a7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

gcloud-java-resourcemanager/src/test/java/com/google/gcloud/resourcemanager/LocalResourceManagerHelperTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ public void testInvalidListPaging() {
303303
rpcOptions.put(ResourceManagerRpc.Option.PAGE_SIZE, -1);
304304
try {
305305
rpc.list(rpcOptions);
306-
} catch (Exception e) {
306+
} catch (ResourceManagerException e) {
307307
assertEquals("Page size must be greater than 0.", e.getMessage());
308308
}
309309
}

0 commit comments

Comments
 (0)