use thiserror::Error;
#[non_exhaustive]
#[derive(Debug, Error)]
pub enum IdentityError {
#[error("sqlite: {0}")]
Sqlite(#[from] sqlx::Error),
#[error("tenant_unauthorised: caller passed {got:?}, store scoped to {expected:?}")]
TenantUnauthorised { expected: String, got: String },
#[error("migration: {0}")]
Migration(String),
#[error("invalid email: {0:?}")]
InvalidEmail(String),
}