pub enum Types {
None,
ApiConnectionError,
ApiError,
AuthenticationError,
CardError,
IdempotencyError,
InvalidRequestError,
RateLimitError,
}Expand description
All available error types from 01/08/2023
Variants§
None
No error type.
ApiConnectionError
Failure to connect to Stripe’s API.
ApiError
API errors cover any other type of problem (e.g., a temporary problem with Stripe’s servers), and are extremely uncommon.
AuthenticationError
Failure to properly authenticate yourself in the request.
CardError
Card errors are the most common type of error you should expect to handle. They result when the user enters a card that can’t be charged for some reason.
IdempotencyError
Idempotency errors occur when an Idempotency-Key is re-used on a request that does not match the first request’s API endpoint and parameters.
InvalidRequestError
Invalid request errors arise when your request has invalid parameters.
RateLimitError
Too many requests hit the API too quickly.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Types
impl<'de> Deserialize<'de> for Types
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Types
impl RefUnwindSafe for Types
impl Send for Types
impl Sync for Types
impl Unpin for Types
impl UnsafeUnpin for Types
impl UnwindSafe for Types
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