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 955a3d1 commit 7e7e32e
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 7e7e32e

Please sign in to comment.