librespot_metadata/
error.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
use std::fmt::Debug;
use thiserror::Error;

#[derive(Debug, Error)]
pub enum MetadataError {
    #[error("empty response")]
    Empty,
    #[error("audio item is non-playable when it should be")]
    NonPlayable,
    #[error("audio item duration can not be: {0}")]
    InvalidDuration(i32),
    #[error("track is marked as explicit, which client setting forbids")]
    ExplicitContentFiltered,
}