huginn_net_tcp/error.rs
1use thiserror::Error;
2
3#[derive(Error, Debug)]
4pub enum HuginnNetTcpError {
5 #[error("Parse error: {0}")]
6 Parse(String),
7
8 #[error("Unsupported protocol: {0}")]
9 UnsupportedProtocol(String),
10
11 #[error("Invalid TCP flags: {0}")]
12 InvalidTcpFlags(u8),
13
14 #[error("Invalid package: {0}")]
15 UnexpectedPackage(String),
16}