librespot_metadata/
error.rs

1use std::fmt::Debug;
2use thiserror::Error;
3
4#[derive(Debug, Error)]
5pub enum MetadataError {
6    #[error("empty response")]
7    Empty,
8    #[error("audio item is non-playable when it should be")]
9    NonPlayable,
10    #[error("audio item duration can not be: {0}")]
11    InvalidDuration(i32),
12    #[error("track is marked as explicit, which client setting forbids")]
13    ExplicitContentFiltered,
14}