1use std::error::Error;
2use std::fmt::{Display, Formatter};
3
4#[derive(Debug)]
5pub struct TokenParseError;
6
7impl Error for TokenParseError {}
8
9impl Display for TokenParseError {
10 fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
11 write!(f, "could not parse authorization token")
12 }
13}
14
15#[derive(Debug)]
16pub struct EntityTagParseError;
17
18impl Error for EntityTagParseError {}
19
20impl Display for EntityTagParseError {
21 fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
22 write!(f, "could not parse etag")
23 }
24}