swim_core/error.rs
1/// Swim error type.
2///
3/// This type is used to represent errors that occur while running a Swim application.
4#[derive(thiserror::Error, Debug)]
5pub enum Error {
6 #[error("Hyper error: {0}")]
7 Hyper(#[from] hyper::Error),
8
9 #[error("Invalid bind address or port")]
10 AddrParse(#[from] std::net::AddrParseError),
11
12 #[error("Failed to read ron file")]
13 RonRead,
14}