http_type/http_url/error.rs
1use crate::*;
2
3/// Represents different types of errors that can occur in the application.
4///
5/// The `Error` enum defines various error types related to HTTP requests, network connections, and TLS operations.
6/// Each variant corresponds to a specific error that can occur during the execution of the application.
7///
8/// # Variants
9/// - `InvalidUrl`: Indicates that the provided URL is invalid.
10#[derive(Debug, Clone, PartialEq, Eq)]
11pub enum Error {
12 InvalidUrl,
13}
14
15impl StdError for Error {}
16
17impl Display for Error {
18 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
19 match self {
20 Error::InvalidUrl => write!(f, "Invalid URL"),
21 }
22 }
23}