convertor 2.6.12

A profile converter for surge/clash.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use crate::error::{EncodeUrlError, EncryptError, ParseUrlError};
use thiserror::Error;

#[derive(Debug, Error)]
pub enum QueryError {
    #[error("无法加密/解密 raw_sub_url: {0}")]
    EncryptError(#[from] EncryptError),

    #[error("Unauthorized: {0}")]
    Unauthorized(String),

    #[error(transparent)]
    Parse(#[from] ParseUrlError),

    #[error(transparent)]
    Encode(#[from] EncodeUrlError),
}