//! Errors for playlist import use thiserror::Error; // The Tauri original also had a `MissingCredentials` variant — dead code // (zero call sites since the providers moved to the credential proxy); // dropped in the extraction along with `ProviderCredentials`. #[derive(Debug, Error)] pub enum PlaylistImportError { #[error("Invalid playlist URL: {0}")] InvalidUrl(String), #[error("Provider not supported: {0}")] UnsupportedProvider(String), #[error("HTTP error: {0}")] Http(String), #[error("Parse error: {0}")] Parse(String), #[error("Qobuz error: {0}")] Qobuz(String), }