#[repr(i64)]
pub enum APIError {
Show 60 variants GeneralBadRequest = 4_000_000, InvalidAppIdentifier = 4_000_002, InvalidRequestRevision = 4_000_005, InvalidTransactionId = 4_000_006, InvalidOriginalTransactionId = 4_000_008, InvalidExtendByDays = 4_000_009, InvalidExtendReasonCode = 4_000_010, InvalidRequestIdentifier = 4_000_011, StartDateTooFarInPast = 4_000_012, StartDateAfterEndDate = 4_000_013, InvalidPaginationToken = 4_000_014, InvalidStartDate = 4_000_015, InvalidEndDate = 4_000_016, PaginationTokenExpired = 4_000_017, InvalidNotificationType = 4_000_018, MultipleFiltersSupplied = 4_000_019, InvalidTestNotificationToken = 4_000_020, InvalidSort = 4_000_021, InvalidProductType = 4_000_022, InvalidProductId = 4_000_023, InvalidSubscriptionGroupIdentifier = 4_000_024, InvalidExcludeRevoked = 4_000_025, InvalidInAppOwnershipType = 4_000_026, InvalidEmptyStorefrontCountryCodeList = 4_000_027, InvalidStorefrontCountryCode = 4_000_028, InvalidRevoked = 4_000_030, InvalidStatus = 4_000_031, InvalidAccountTenure = 4_000_032, InvalidAppAccountToken = 4_000_033, InvalidConsumptionStatus = 4_000_034, InvalidCustomerConsented = 4_000_035, InvalidDeliveryStatus = 4_000_036, InvalidLifetimeDollarsPurchased = 4_000_037, InvalidLifetimeDollarsRefunded = 4_000_038, InvalidPlatform = 4_000_039, InvalidPlayTime = 4_000_040, InvalidSampleContentProvided = 4_000_041, InvalidUserStatus = 4_000_042, InvalidTransactionNotConsumable = 4_000_043, InvalidTransactionTypeNotSupported = 4_000_047, AppTransactionIdNotSupportedError = 4_000_048, InvalidAppAccountTokenUUID = 4_000_183, FamilyTransactionNotSupported = 4_000_185, TransactionIdNotOriginalTransactionId = 4_000_187, SubscriptionExtensionIneligible = 4_030_004, SubscriptionMaxExtension = 4_030_005, FamilySharedSubscriptionExtensionIneligible = 4_030_007, AccountNotFound = 4_040_001, AccountNotFoundRetryable = 4_040_002, AppNotFound = 4_040_003, AppNotFoundRetryable = 4_040_004, OriginalTransactionIdNotFound = 4_040_005, OriginalTransactionIdNotFoundRetryable = 4_040_006, ServerNotificationUrlNotFound = 4_040_007, TestNotificationNotFound = 4_040_008, StatusRequestNotFound = 4_040_009, TransactionIdNotFound = 4_040_010, RateLimitExceeded = 4_290_000, GeneralInternal = 5_000_000, GeneralInternalRetryable = 5_000_001,
}
Expand description

Enum representing different API errors with associated status codes.

Variants§

§

GeneralBadRequest = 4_000_000

An error that indicates an invalid request. Documentation

§

InvalidAppIdentifier = 4_000_002

An error that indicates an invalid app identifier. Documentation

§

InvalidRequestRevision = 4_000_005

An error that indicates an invalid request revision. Documentation

§

InvalidTransactionId = 4_000_006

An error that indicates an invalid transaction identifier. Documentation

§

InvalidOriginalTransactionId = 4_000_008

An error that indicates an invalid original transaction identifier. Documentation

§

InvalidExtendByDays = 4_000_009

An error that indicates an invalid extend-by-days value. Documentation

§

InvalidExtendReasonCode = 4_000_010

An error that indicates an invalid reason code. Documentation

§

InvalidRequestIdentifier = 4_000_011

An error that indicates an invalid request identifier. Documentation

§

StartDateTooFarInPast = 4_000_012

An error that indicates that the start date is earlier than the earliest allowed date. Documentation

§

StartDateAfterEndDate = 4_000_013

An error that indicates that the end date precedes the start date, or the two dates are equal. Documentation

§

InvalidPaginationToken = 4_000_014

An error that indicates the pagination token is invalid. Documentation

§

InvalidStartDate = 4_000_015

An error that indicates the start date is invalid. Documentation

§

InvalidEndDate = 4_000_016

An error that indicates the end date is invalid. Documentation

§

PaginationTokenExpired = 4_000_017

An error that indicates the pagination token expired. Documentation

§

InvalidNotificationType = 4_000_018

An error that indicates the notification type or subtype is invalid. Documentation

§

MultipleFiltersSupplied = 4_000_019

An error that indicates the request is invalid because it has too many constraints applied. Documentation

§

InvalidTestNotificationToken = 4_000_020

An error that indicates the test notification token is invalid. Documentation

§

InvalidSort = 4_000_021

An error that indicates an invalid sort parameter. Documentation

§

InvalidProductType = 4_000_022

An error that indicates an invalid product type parameter. Documentation

§

InvalidProductId = 4_000_023

An error that indicates the product ID parameter is invalid. Documentation

§

InvalidSubscriptionGroupIdentifier = 4_000_024

An error that indicates an invalid subscription group identifier. Documentation

§

InvalidExcludeRevoked = 4_000_025

An error that indicates the query parameter exclude-revoked is invalid. Documentation

§

InvalidInAppOwnershipType = 4_000_026

An error that indicates an invalid in-app ownership type parameter. Documentation

§

InvalidEmptyStorefrontCountryCodeList = 4_000_027

An error that indicates a required storefront country code is empty. Documentation

§

InvalidStorefrontCountryCode = 4_000_028

An error that indicates a storefront code is invalid. Documentation

§

InvalidRevoked = 4_000_030

An error that indicates the revoked parameter contains an invalid value. Documentation

§

InvalidStatus = 4_000_031

An error that indicates the status parameter is invalid. Documentation

§

InvalidAccountTenure = 4_000_032

An error that indicates the value of the account tenure field is invalid. Documentation

§

InvalidAppAccountToken = 4_000_033

An error that indicates the value of the app account token is invalid. Documentation

§

InvalidConsumptionStatus = 4_000_034

An error that indicates the consumption status is invalid. Documentation

§

InvalidCustomerConsented = 4_000_035

An error that indicates the customer consented status is invalid. Documentation

§

InvalidDeliveryStatus = 4_000_036

An error that indicates the delivery status is invalid. Documentation

§

InvalidLifetimeDollarsPurchased = 4_000_037

An error that indicates the lifetime dollars purchased field is invalid. Documentation

§

InvalidLifetimeDollarsRefunded = 4_000_038

An error that indicates the lifetime dollars refunded field is invalid. Documentation

§

InvalidPlatform = 4_000_039

An error that indicates the platform parameter is invalid. Documentation

§

InvalidPlayTime = 4_000_040

An error that indicates the play time parameter is invalid. Documentation

§

InvalidSampleContentProvided = 4_000_041

An error that indicates the sample content provided parameter is invalid. Documentation

§

InvalidUserStatus = 4_000_042

An error that indicates the user status parameter is invalid. Documentation

§

InvalidTransactionNotConsumable = 4_000_043

👎Deprecated since 2.1.0

An error that indicates the transaction is not consumable. Documentation

§

InvalidTransactionTypeNotSupported = 4_000_047

An error that indicates the transaction identifier represents an unsupported in-app purchase type.

InvalidTransactionTypeNotSupportedError

§

AppTransactionIdNotSupportedError = 4_000_048

An error that indicates the endpoint doesn’t support an app transaction ID.

AppTransactionIdNotSupportedError

§

InvalidAppAccountTokenUUID = 4_000_183

An error that indicates the app account token value is not a valid UUID.

InvalidAppAccountTokenUUID

§

FamilyTransactionNotSupported = 4_000_185

An error that indicates the transaction is for a product the customer obtains through Family Sharing, which the endpoint doesn’t support.

FamilyTransactionNotSupported

§

TransactionIdNotOriginalTransactionId = 4_000_187

An error that indicates the endpoint expects an original transaction identifier.

TransactionIdNotOriginalTransactionId

§

SubscriptionExtensionIneligible = 4_030_004

An error that indicates the subscription doesn’t qualify for a renewal-date extension due to its subscription state. Documentation

§

SubscriptionMaxExtension = 4_030_005

An error that indicates the subscription doesn’t qualify for a renewal-date extension because it has already received the maximum extensions. Documentation

§

FamilySharedSubscriptionExtensionIneligible = 4_030_007

An error that indicates a subscription isn’t directly eligible for a renewal date extension because the user obtained it through Family Sharing. Documentation

§

AccountNotFound = 4_040_001

An error that indicates the App Store account wasn’t found. Documentation

§

AccountNotFoundRetryable = 4_040_002

An error response that indicates the App Store account wasn’t found, but you can try again. Documentation

§

AppNotFound = 4_040_003

An error that indicates the app wasn’t found. Documentation

§

AppNotFoundRetryable = 4_040_004

An error response that indicates the app wasn’t found, but you can try again. Documentation

§

OriginalTransactionIdNotFound = 4_040_005

An error that indicates an original transaction identifier wasn’t found. Documentation

§

OriginalTransactionIdNotFoundRetryable = 4_040_006

An error response that indicates the original transaction identifier wasn’t found, but you can try again. Documentation

§

ServerNotificationUrlNotFound = 4_040_007

An error that indicates that the App Store server couldn’t find a notifications URL for your app in this environment. Documentation

§

TestNotificationNotFound = 4_040_008

An error that indicates that the test notification token is expired or the test notification status isn’t available. Documentation

§

StatusRequestNotFound = 4_040_009

An error that indicates the server didn’t find a subscription-renewal-date extension request for the request identifier and product identifier you provided. Documentation

§

TransactionIdNotFound = 4_040_010

An error that indicates a transaction identifier wasn’t found. Documentation

§

RateLimitExceeded = 4_290_000

An error that indicates that the request exceeded the rate limit. Documentation

§

GeneralInternal = 5_000_000

An error that indicates a general internal error.

GeneralInternalError

§

GeneralInternalRetryable = 5_000_001

An error response that indicates an unknown error occurred, but you can try again.

GeneralInternalRetryableError

Trait Implementations§

Source§

impl Clone for APIError

Source§

fn clone(&self) -> APIError

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for APIError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for APIError

Source§

fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>
where D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Hash for APIError

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for APIError

Source§

fn eq(&self, other: &APIError) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for APIError

Source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for APIError

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

Source§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

Source§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where T: 'a,

Source§

fn implicit( self, class: Class, constructed: bool, tag: u32, ) -> TaggedParser<'a, Implicit, Self, E>

Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,