Enum mpesa::MpesaError
source · pub enum MpesaError {
Show 22 variants
AuthenticationError(ApiError),
B2bError(ApiError),
B2cError(ApiError),
C2bRegisterError(ApiError),
C2bSimulateError(ApiError),
AccountBalanceError(ApiError),
OnboardError(ApiError),
OnboardModifyError(ApiError),
BulkInvoiceError(ApiError),
ReconciliationError(ApiError),
SingleInvoiceError(ApiError),
CancelInvoiceError(ApiError),
MpesaExpressRequestError(ApiError),
MpesaTransactionReversalError(ApiError),
MpesaTransactionStatusError(ApiError),
MpesaDynamicQrError(ApiError),
NetworkError(Error),
ParseError(Error),
EnvironmentalVariableError(VarError),
EncryptionError(ErrorStack),
Message(&'static str),
BuilderError(BuilderError),
}
Expand description
Mpesa error stack
Variants§
AuthenticationError(ApiError)
B2bError(ApiError)
B2cError(ApiError)
C2bRegisterError(ApiError)
C2bSimulateError(ApiError)
AccountBalanceError(ApiError)
OnboardError(ApiError)
OnboardModifyError(ApiError)
BulkInvoiceError(ApiError)
ReconciliationError(ApiError)
SingleInvoiceError(ApiError)
CancelInvoiceError(ApiError)
MpesaExpressRequestError(ApiError)
MpesaTransactionReversalError(ApiError)
MpesaTransactionStatusError(ApiError)
MpesaDynamicQrError(ApiError)
NetworkError(Error)
ParseError(Error)
EnvironmentalVariableError(VarError)
EncryptionError(ErrorStack)
Message(&'static str)
BuilderError(BuilderError)
Trait Implementations§
source§impl Debug for MpesaError
impl Debug for MpesaError
source§impl Display for MpesaError
impl Display for MpesaError
source§impl Error for MpesaError
impl Error for MpesaError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<Error> for MpesaError
impl From<Error> for MpesaError
source§impl From<Error> for MpesaError
impl From<Error> for MpesaError
source§impl From<ErrorStack> for MpesaError
impl From<ErrorStack> for MpesaError
source§fn from(source: ErrorStack) -> Self
fn from(source: ErrorStack) -> Self
Converts to this type from the input type.
source§impl From<UninitializedFieldError> for MpesaError
impl From<UninitializedFieldError> for MpesaError
source§fn from(e: UninitializedFieldError) -> Self
fn from(e: UninitializedFieldError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for MpesaError
impl Send for MpesaError
impl Sync for MpesaError
impl Unpin for MpesaError
impl !UnwindSafe for MpesaError
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more