1use thiserror::Error;
2
3#[derive(Debug, Error)]
5#[cfg_attr(feature = "ffi", derive(uniffi::Error))]
6#[cfg_attr(feature = "ffi", uniffi(flat_error))]
7pub enum WalletKitError {
8 #[error("invalid_input")]
10 InvalidInput,
11 #[error("invalid_number")]
13 InvalidNumber,
14 #[error("serialization_error")]
16 SerializationError,
17 #[error(transparent)]
19 Reqwest(#[from] reqwest::Error),
20 #[error(transparent)]
22 ProofGeneration(#[from] semaphore_rs::protocol::ProofError),
23 #[error("semaphore_not_enabled")]
25 SemaphoreNotEnabled,
26}