Skip to content

Commit 44c15e7

Browse files
committed
[#1602] Add some method to CompletionStages#Handler
1 parent 509fa27 commit 44c15e7

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

hibernate-reactive-core/src/main/java/org/hibernate/reactive/util/impl/CompletionStages.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,14 @@ public CompletionStageHandler(R result, T throwable) {
243243
this.throwable = throwable;
244244
}
245245

246+
public boolean hasFailed() {
247+
return throwable != null;
248+
}
249+
250+
public T getThrowable() {
251+
return throwable;
252+
}
253+
246254
public R getResult() throws T {
247255
if ( throwable == null ) {
248256
return result;

0 commit comments

Comments
 (0)