We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab89a66 commit 64e2b2eCopy full SHA for 64e2b2e
google-cloud-storage/src/main/java/com/google/cloud/storage/GapicUnbufferedDirectWritableByteChannel.java
@@ -273,11 +273,14 @@ void await() {
273
try {
274
invocationHandle.get();
275
} catch (InterruptedException | ExecutionException e) {
276
+ RuntimeException runtimeException;
277
if (e.getCause() instanceof RuntimeException) {
- throw (RuntimeException) e.getCause();
278
+ runtimeException = (RuntimeException) e.getCause();
279
} else {
- throw new RuntimeException(e);
280
+ runtimeException = new RuntimeException(e);
281
}
282
+ runtimeException.addSuppressed(new AsyncStorageTaskException());
283
+ throw runtimeException;
284
285
286
0 commit comments