in src/main/java/com/microsoft/azure/spark/tools/http/OAuthTokenHttpObservable.java [46:62]
protected List<Header> getOAuthDefaultHeaders() throws IOException {
try {
return oAuthDefaultHeaders.getOrEvaluate(() -> {
try {
return Arrays.asList(new OAuthTokenHeader(getAccessToken()));
} catch (IOException ex) {
throw new RuntimeException(ex);
}
});
} catch (RuntimeException innerEx) {
if (innerEx.getCause() instanceof IOException) {
throw (IOException) innerEx.getCause();
} else {
throw innerEx;
}
}
}