Skip to content

Commit

Permalink
fix: bug
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreaDel03 committed Dec 19, 2024
1 parent 6ac3451 commit 517f14b
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,11 @@ public void handle(Callback[] callbacks) throws IOException, UnsupportedCallback
OAuthBearerToken token = getOAuthBearerToken();
OAuthBearerTokenCallback oauthCallback = (OAuthBearerTokenCallback) callback;
oauthCallback.token(token);
} catch (InterruptedException | ExecutionException | TimeoutException e) {
e.printStackTrace();
} catch (InterruptedException e){
Thread.currentThread().interrupt();
throw new BusinessException("Thread was interrupted while handling callback", e);
} catch (ExecutionException | TimeoutException e) {
throw new BusinessException("Error while handling callback");
}
} else {
throw new UnsupportedCallbackException(callback);
Expand Down

0 comments on commit 517f14b

Please sign in to comment.