Skip to content

Commit d0827e1

Browse files
committed
Overload newSpannerBatchUpdateException to avoid breakages
1 parent ae29724 commit d0827e1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

google-cloud-spanner/src/main/java/com/google/cloud/spanner/SpannerExceptionFactory.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,11 @@ public static SpannerException newSpannerException(Throwable cause, XGoogSpanner
139139
return newSpannerException(null, cause, reqId);
140140
}
141141

142+
public static SpannerBatchUpdateException newSpannerBatchUpdateException(
143+
ErrorCode code, String message, long[] updateCounts) {
144+
return newSpannerBatchUpdateException(code, message, updateCounts, null);
145+
}
146+
142147
public static SpannerBatchUpdateException newSpannerBatchUpdateException(
143148
ErrorCode code, String message, long[] updateCounts, @Nullable XGoogSpannerRequestId reqId) {
144149
DoNotConstructDirectly token = DoNotConstructDirectly.ALLOWED;

0 commit comments

Comments
 (0)