Skip to content

Commit

Permalink
Update exception logic
Browse files Browse the repository at this point in the history
  • Loading branch information
HindujaB committed Nov 19, 2024
1 parent 8d5d260 commit 94f288f
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,11 @@ private static boolean isModuleDefinedError(BError error) {
public static Object getResult(CompletableFuture<Object> balFuture) {
try {
return balFuture.get();
} catch (BError error) {
throw error;
} catch (InterruptedException e) {
Thread.currentThread().interrupt();
throw ErrorCreator.createError(e);
} catch (Throwable throwable) {
throw ErrorCreator.createError(throwable);
}
Expand Down

0 comments on commit 94f288f

Please sign in to comment.