blob: d90a8625363816bd4132a7880d13d48850d0dec1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
use thiserror::Error;
#[derive(Error, Debug)]
pub enum WardenError {
#[error(transparent)]
Datastore(#[from] sqlx::Error),
#[error(transparent)]
Migration(#[from] sqlx::migrate::MigrateError),
#[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,
}
|