Add exception cause to thrown exception

PiperOrigin-RevId: 509473556
This commit is contained in:
Googler 2023-02-14 10:54:01 +00:00 committed by christosts
parent efcb7683e5
commit 08cf6db305

View file

@ -103,7 +103,7 @@ public class DefaultDownloaderFactory implements DownloaderFactory {
return constructor.newInstance(mediaItem, cacheDataSourceFactory, executor);
} catch (Exception e) {
throw new IllegalStateException(
"Failed to instantiate downloader for content type " + contentType);
"Failed to instantiate downloader for content type " + contentType, e);
}
}