Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ static void createPostgreSqlDatabase(
System.out.println("Created database [" + db.getName() + "]");
} catch (ExecutionException e) {
// If the operation failed during execution, expose the cause.
throw (SpannerException) e.getCause();
throw SpannerExceptionFactory.asSpannerException(e.getCause());
} catch (InterruptedException e) {
// Throw when a thread is waiting, sleeping, or otherwise occupied,
// and the thread is interrupted, either before or during the activity.
Expand Down Expand Up @@ -320,7 +320,7 @@ static void addMarketingBudget(DatabaseAdminClient adminClient, DatabaseName dat
System.out.println("Added MarketingBudget column");
} catch (ExecutionException e) {
// If the operation failed during execution, expose the cause.
throw (SpannerException) e.getCause();
throw SpannerExceptionFactory.asSpannerException(e.getCause());
} catch (InterruptedException e) {
// Throw when a thread is waiting, sleeping, or otherwise occupied,
// and the thread is interrupted, either before or during the activity.
Expand Down Expand Up @@ -438,7 +438,7 @@ static void addIndex(DatabaseAdminClient adminClient, DatabaseName databaseName)
System.out.println("Added AlbumsByAlbumTitle index");
} catch (ExecutionException e) {
// If the operation failed during execution, expose the cause.
throw (SpannerException) e.getCause();
throw SpannerExceptionFactory.asSpannerException(e.getCause());
} catch (InterruptedException e) {
// Throw when a thread is waiting, sleeping, or otherwise occupied,
// and the thread is interrupted, either before or during the activity.
Expand Down Expand Up @@ -476,7 +476,7 @@ static void addStoringIndex(DatabaseAdminClient adminClient, DatabaseName databa
System.out.println("Added AlbumsByAlbumTitle2 index");
} catch (ExecutionException e) {
// If the operation failed during execution, expose the cause.
throw (SpannerException) e.getCause();
throw SpannerExceptionFactory.asSpannerException(e.getCause());
} catch (InterruptedException e) {
// Throw when a thread is waiting, sleeping, or otherwise occupied,
// and the thread is interrupted, either before or during the activity.
Expand Down Expand Up @@ -754,7 +754,7 @@ static void addLastUpdateTimestampColumn(
System.out.println("Added LastUpdateTime as a timestamp column in Albums table.");
} catch (ExecutionException e) {
// If the operation failed during execution, expose the cause.
throw (SpannerException) e.getCause();
throw SpannerExceptionFactory.asSpannerException(e.getCause());
} catch (InterruptedException e) {
// Throw when a thread is waiting, sleeping, or otherwise occupied,
// and the thread is interrupted, either before or during the activity.
Expand Down Expand Up @@ -808,7 +808,7 @@ static void createTableWithTimestamp(DatabaseAdminClient dbAdminClient,
System.out.println("Created Performances table in database: [" + databaseName + "]");
} catch (ExecutionException e) {
// If the operation failed during execution, expose the cause.
throw (SpannerException) e.getCause();
throw SpannerExceptionFactory.asSpannerException(e.getCause());
} catch (InterruptedException e) {
// Throw when a thread is waiting, sleeping, or otherwise occupied,
// and the thread is interrupted, either before or during the activity.
Expand Down Expand Up @@ -1001,7 +1001,7 @@ static void createTableWithDatatypes(DatabaseAdminClient dbAdminClient,
System.out.println("Created Venues table in database: [" + databaseName + "]");
} catch (ExecutionException e) {
// If the operation failed during execution, expose the cause.
throw (SpannerException) e.getCause();
throw SpannerExceptionFactory.asSpannerException(e.getCause());
} catch (InterruptedException e) {
// Throw when a thread is waiting, sleeping, or otherwise occupied,
// and the thread is interrupted, either before or during the activity.
Expand Down
Loading