Plugin-specific exceptions
This commit is contained in:
parent
1e3716e722
commit
0524d4302b
3 changed files with 42 additions and 9 deletions
|
@ -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}");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue