bitwarden_organization_invite_link/
error.rs1use bitwarden_core::{ApiError, MissingFieldError};
2use bitwarden_crypto::CryptoError;
3use bitwarden_error::bitwarden_error;
4use bitwarden_organization_crypto::invite::InviteKeyBundleError;
5use thiserror::Error;
6
7#[bitwarden_error(flat)]
9#[derive(Debug, Error)]
10pub enum InviteLinkError {
11 #[error(transparent)]
13 Invite(#[from] InviteKeyBundleError),
14 #[error(transparent)]
16 Api(#[from] ApiError),
17 #[error(transparent)]
20 Crypto(#[from] CryptoError),
21 #[error(transparent)]
23 MissingField(#[from] MissingFieldError),
24 #[error("Failed to parse `{0}`")]
26 ParseFailure(&'static str),
27 #[error("Account recovery public key does not match the invite's bound organization key")]
30 RecoveryKeyMismatch,
31 #[error("At least one allowed domain is required.")]
33 NoAllowedDomains,
34}