Commit 08cf6db3 by Googler Committed by christosts

Add exception cause to thrown exception

PiperOrigin-RevId: 509473556
parent efcb7683
...@@ -103,7 +103,7 @@ public class DefaultDownloaderFactory implements DownloaderFactory { ...@@ -103,7 +103,7 @@ public class DefaultDownloaderFactory implements DownloaderFactory {
return constructor.newInstance(mediaItem, cacheDataSourceFactory, executor); return constructor.newInstance(mediaItem, cacheDataSourceFactory, executor);
} catch (Exception e) { } catch (Exception e) {
throw new IllegalStateException( throw new IllegalStateException(
"Failed to instantiate downloader for content type " + contentType); "Failed to instantiate downloader for content type " + contentType, e);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment