Skip to content

Commit 75849de

Browse files
committed
Fix snippets
1 parent 006d60d commit 75849de

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

google-cloud-examples/src/main/java/com/google/cloud/examples/spanner/snippets/DatabaseAdminClientSnippets.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,9 @@ public Database createDatabase(String instanceId, String databaseId) {
7474
Database db;
7575
try {
7676
db = op.get();
77-
} catch (Exception e) {
78-
throw SpannerExceptionFactory.newSpannerException(e);
79-
}
77+
} catch (ExecutionException | InterruptedException e) {
78+
throw e.getCause();
79+
}
8080
// [END createDatabase]
8181
return db;
8282
}

0 commit comments

Comments
 (0)