mirror of
https://github.com/androidx/media.git
synced 2025-05-09 16:40:55 +08:00
Add exception cause to thrown exception
PiperOrigin-RevId: 509473556
This commit is contained in:
parent
3aca3ad170
commit
56803bf1ad
@ -105,7 +105,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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user