Moved some errors around.

This commit is contained in:
2026-10-12 17:18:32 +02:00
parent a290610216
commit 05492123d7
5 changed files with 27 additions and 27 deletions
+12 -12
View File
@@ -2,27 +2,27 @@ use crate::{domain::DomainError, repository::RepositoryError, routes::extractors
#[derive(Debug, thiserror::Error)]
pub enum AppError {
#[error("account not found")]
AccountNotFound,
#[error("user not found")]
UserNotFound,
#[error("account id already exists")]
AccountIdAlreadyExists,
#[error("account id not found")]
AccountIdNotFound,
#[error("transaction id already exists")]
TransactionIdAlreadyExists,
#[error("scheduled transaction id already exists")]
ScheduledTransactionIdAlreadyExists,
#[error("app id already exists")]
AppIdAlreadyExists,
#[error("scheduled transaction id already exists")]
ScheduledTransactionIdAlreadyExists,
#[error("transaction id already exists")]
TransactionIdAlreadyExists,
#[error("cannot remove the last member of an account")]
LastAccountMemberRemoval,
#[error("user id not found")]
UserIdNotFound,
#[error("invalid client credentials")]
InvalidClientCredentials,