13 lines
277 B
Dart
13 lines
277 B
Dart
|
import 'package:spotify/spotify.dart';
|
||
|
|
||
|
class TrackNotFoundError extends Error {
|
||
|
final Track track;
|
||
|
|
||
|
TrackNotFoundError(this.track);
|
||
|
|
||
|
@override
|
||
|
String toString() {
|
||
|
return '[TrackNotFoundError] ${track.name} - ${track.artists?.map((e) => e.name).join(", ")}';
|
||
|
}
|
||
|
}
|