Made accounts and their transaction accessible to account members only.
This commit is contained in:
+16
-1
@@ -2,7 +2,19 @@ use crate::{domain::DomainError, repository::RepositoryError, routes::extractors
|
||||
|
||||
#[derive(Debug, thiserror::Error)]
|
||||
pub enum AppError {
|
||||
#[error("app id is already in use")]
|
||||
#[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("invalid client credentials")]
|
||||
@@ -11,6 +23,9 @@ pub enum AppError {
|
||||
#[error("invalid refresh token")]
|
||||
InvalidRefreshToken,
|
||||
|
||||
#[error("cannot remove the last member of an account")]
|
||||
LastAccountMemberRemoval,
|
||||
|
||||
#[error("not found")]
|
||||
NotFound,
|
||||
|
||||
|
||||
Reference in New Issue
Block a user