ppaass_agent/error.rs
1use ppaass_codec::error::CodecError;
2use ppaass_protocol::error::ProtocolError;
3use std::io::Error as StdIoError;
4use thiserror::Error;
5
6#[derive(Debug, Error)]
7pub enum AgentServerError {
8 #[error("Agent error happen because of io: {0:?}")]
9 StdIo(#[from] StdIoError),
10 #[error(transparent)]
11 ProxyEdgeCodec(#[from] CodecError),
12 #[error(transparent)]
13 Protocol(#[from] ProtocolError),
14 #[error("Agent error happen because of reason: {0}")]
15 Other(String),
16}