mirror of
https://github.com/yuezk/GlobalProtect-openconnect.git
synced 2025-04-02 18:31:50 -04:00
20 lines
395 B
Rust
20 lines
395 B
Rust
use thiserror::Error;
|
|
|
|
#[derive(Error, Debug)]
|
|
pub enum PortalError {
|
|
#[error("Prelogin error: {0}")]
|
|
PreloginError(String),
|
|
#[error("Portal config error: {0}")]
|
|
ConfigError(String),
|
|
#[error("Network error: {0}")]
|
|
NetworkError(String),
|
|
}
|
|
|
|
#[derive(Error, Debug)]
|
|
pub enum AuthDataParseError {
|
|
#[error("No auth data found")]
|
|
NotFound,
|
|
#[error("Invalid auth data")]
|
|
Invalid,
|
|
}
|