Handle the gateway endpoint error

Related: #338
This commit is contained in:
Kevin Yue committed 2024-03-25 21:03:54 +08:00
1 parent 08bd4efefa
commit 2d1aa3ba8c
8 files changed
+28 -16

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
use thiserror::Error;
#[derive(Error, Debug)]
pub enum PortalError {
#[error("Portal prelogin error: {0}")]
PreloginError(String),
#[error("Portal config error: {0}")]
ConfigError(String),
#[error("Gateway error: {0}")]
GatewayError(String),
}