feat: handle Store-related errors from Identity DB port
This commit is contained in:
parent
e52530f0e3
commit
a105d85e26
1 changed files with 6 additions and 0 deletions
|
@ -29,6 +29,9 @@ pub enum IdentityError {
|
|||
EmployeeNotFound,
|
||||
InviteNotFound,
|
||||
StoreNotFound,
|
||||
DuplicateStoreName,
|
||||
StoreIDNotFound,
|
||||
DuplicateStoreID,
|
||||
}
|
||||
|
||||
pub type IdentityCommandResult<V> = Result<V, IdentityCommandError>;
|
||||
|
@ -74,6 +77,9 @@ impl From<OutDBPortError> for IdentityError {
|
|||
OutDBPortError::PhoneNumberNotFound => Self::PhoneNumberNotFound,
|
||||
OutDBPortError::EmpLoginOTPNotFound => Self::LoginOTPNotFound,
|
||||
OutDBPortError::EmpVerificationOTPNotFound => Self::VerificationOTPNotFound,
|
||||
OutDBPortError::DuplicateStoreName => Self::DuplicateStoreName,
|
||||
OutDBPortError::DuplicateStoreID => Self::DuplicateStoreID,
|
||||
OutDBPortError::StoreIDNotFound => Self::StoreIDNotFound,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue