blob: f05971fef752e2ffd247727110566290ec967fa9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
use thiserror::Error;
#[derive(Error, Debug)]
pub enum WardenError {
#[error(transparent)]
Datastore(#[from] sqlx::Error),
#[error(transparent)]
Url(#[from] url::ParseError),
#[error("Missing required configuration values:\n`{0}`")]
Config(String),
#[error("invalid header (expected {expected:?}, found {found:?})")]
InvalidHeader { expected: String, found: String },
#[error("unknown data store error")]
Unknown,
}
|