github_proxy/error.rs
1use thiserror::Error;
2
3#[derive(Error, Debug)]
4pub enum ConversionError {
5 #[error("Invalid proxy type: {0}\nSupported types: github, gh-proxy, xget, jsdelivr")]
6 InvalidProxyType(String),
7
8 #[error("Invalid resource type: {0}\nSupported types: file, release")]
9 InvalidResourceType(String),
10
11 #[error("Invalid arguments: {0}")]
12 InvalidArguments(String),
13}