use kithara_events::TrackId;
use kithara_play::PlayError;
#[derive(Debug, thiserror::Error)]
#[non_exhaustive]
pub enum QueueError {
#[error("invalid URL or path: {0}")]
InvalidUrl(String),
#[error("unknown track id: {0:?}")]
UnknownTrackId(TrackId),
#[error("track not ready: {0:?}")]
NotReady(TrackId),
#[error("load cancelled: {0:?}")]
Cancelled(TrackId),
#[error(transparent)]
Play(#[from] PlayError),
#[error("resource error: {0}")]
Resource(String),
}