lepros_reactive_axum/src/error.rs

12 lines
323 B
Rust
Raw Normal View History

2024-06-15 11:22:26 +02:00
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,
}