lepros_reactive_axum/src/error.rs
2024-06-15 11:22:26 +02:00

11 lines
323 B
Rust

use thiserror::Error;
#[derive(Error, Debug)]
pub enum ExtractionError {
#[error("axum extracting information failed")]
AxumError(String),
#[error("leptos_reactive error occured")]
LeptosError(String),
#[error("the body of the request has been extracted more then once this isn't allowed")]
MultipleBodyExtractor,
}