Moved some errors around.
This commit is contained in:
+12
-12
@@ -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,
|
||||
|
||||
|
||||
Reference in New Issue
Block a user