mirror of
https://github.com/eRgo35/spotify-parser.git
synced 2025-12-15 20:36:10 +01:00
15 lines
250 B
Rust
15 lines
250 B
Rust
use std::fmt;
|
|
|
|
#[derive(Debug)]
|
|
pub enum ParseError {
|
|
InvalidUrl,
|
|
}
|
|
|
|
impl fmt::Display for ParseError {
|
|
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
|
write!(f, "Invalid URL")
|
|
}
|
|
}
|
|
|
|
impl std::error::Error for ParseError {}
|