Skip to main content

msnp11_sdk/errors/
contact_error.rs

1/// Errors when performing contact actions.
2#[derive(Debug, thiserror::Error)]
3#[cfg_attr(feature = "uniffi", derive(uniffi::Error))]
4pub enum ContactError {
5    #[error("Server returned an error while logging in")]
6    ServerError,
7    #[error("An invalid argument was sent")]
8    InvalidArgument,
9    #[error("Command refers to an invalid contact")]
10    InvalidContact,
11    #[error("Error receiving data")]
12    ReceivingError,
13    #[error("Error transmitting data")]
14    TransmittingError,
15    #[error("The contact you're trying to invite is offline")]
16    ContactIsOffline,
17}