Enum stripe::StripeError
source · pub enum StripeError {
Stripe(RequestError),
QueryStringSerialize(Error<Error>),
JSONSerialize(Error<Error>),
UnsupportedVersion,
ClientError(String),
Timeout,
}
Expand description
An error encountered when communicating with the Stripe API.
Variants§
Stripe(RequestError)
QueryStringSerialize(Error<Error>)
JSONSerialize(Error<Error>)
UnsupportedVersion
ClientError(String)
Timeout
Trait Implementations§
source§impl Debug for StripeError
impl Debug for StripeError
source§impl Display for StripeError
impl Display for StripeError
source§impl Error for StripeError
impl Error for StripeError
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 StripeError
impl From<Error> for StripeError
source§fn from(err: Error) -> StripeError
fn from(err: Error) -> StripeError
Converts to this type from the input type.
source§impl From<Error> for StripeError
impl From<Error> for StripeError
source§fn from(err: Error) -> StripeError
fn from(err: Error) -> StripeError
Converts to this type from the input type.
source§impl From<RequestError> for StripeError
impl From<RequestError> for StripeError
source§fn from(source: RequestError) -> Self
fn from(source: RequestError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for StripeError
impl Send for StripeError
impl Sync for StripeError
impl Unpin for StripeError
impl !UnwindSafe for StripeError
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