Plugin-specific exceptions

This commit is contained in:
Ryan Heise 2020-08-07 22:11:28 +10:00
parent 1e3716e722
commit 0524d4302b
3 changed files with 42 additions and 9 deletions

View file

@ -70,8 +70,8 @@ class _MyAppState extends State<MyApp> {
try {
await _player.load(_playlist);
} catch (e) {
// catch load errors: 404 url, wrong url ...
print("$e");
// catch load errors: 404, invalid url ...
print("An error occured (${e.code}): ${e.message}");
}
}