Package com.apple.itunes.storekit.client
Enum Class APIError
- All Implemented Interfaces:
Serializable,Comparable<APIError>,Constable
An error returned by the App Store Server API indicating an issue with processing a request.
See the specific documentation for each endpoint to learn more about what codes are possible from each endpoint.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAn error that indicates the App Store account wasn't found.An error response that indicates the App Store account wasn’t found, but you can try again.An error that indicates the alternative text for an image is too long.An error that indicates the app wasn’t found.An error response that indicates the app wasn’t found, but you can try again.An error response that indicates an app transaction doesn’t exist for the specified customer.An error that indicates the endpoint doesn't support an app transaction ID.An error that indicates the body text is too long.An error that indicates a subscription isn't directly eligible for a renewal date extension because the user obtained it through Family Sharing.An error that indicates the transaction is for a product the customer obtains through Family Sharing, which the endpoint doesn’t support.An error that indicates an invalid request.An error that indicates a general internal error.An error response that indicates an unknown error occurred, but you can try again.An error that indicates the header text is too long.An error that indicates the image identifier already exists.An error that indicates the image is currently in use as part of a message, so you can't delete it.An error that indicates the image isn't in the approved state, so you can't configure it as part of a default message.An error that indicates the system can't find the image identifier.An error that indicates the value of the account tenure field is invalid.An error that indicates the value of the app account token field is invalid.An error that indicates the app account token value is not a valid UUID.An error that indicates an invalid app identifier.An error that indicates the value of the consumption status field is invalid.An error that indicates the customer consented field is invalid or doesn’t indicate that the customer consented.An error that indicates the value in the delivery status field is invalid.An error that indicates a required storefront country code is empty.An error that indicates the end date is invalid.Deprecated.An error that indicates an invalid extend-by-days value.An error that indicates an invalid reason code.An error that indicates the image that's uploading is invalid.An error that indicates an invalid in-app ownership type parameter.An error that indicates the value in the lifetime dollars purchased field is invalid.An error that indicates the value in the lifetime dollars refunded field is invalid.An error that indicates the locale is invalid.An error that indicates the notification type or subtype is invalid.An error that indicates an invalid original transaction identifier.An error that indicates the pagination token is invalid.An error that indicates the value in the platform field is invalid.An error that indicates the value in the playtime field is invalid.An error that indicates the product ID parameter is invalid.An error that indicates an invalid product type parameter.An error that indicates an invalid request identifier.An error that indicates an invalid request revision.An error that indicates the revoked parameter contains an invalid value.An error that indicates the value in the sample content provided field is invalid.An error that indicates an invalid sort parameter.An error that indicates the start date is invalid.An error that indicates the status parameter is invalid.An error that indicates a storefront code is invalid.An error that indicates an invalid subscription group identifier.An error that indicates the test notification token is invalid.An error that indicates an invalid transaction identifier.Deprecated.An error that indicates the transaction identifier represents an unsupported in-app purchase type.An error that indicates the value in the user status field is invalid.An error that indicates when you reach the maximum number of uploaded images.An error that indicates when you reach the maximum number of uploaded messages.An error that indicates the message identifier already exists.An error that indicates the message isn't in the approved state, so you can't configure it as a default message.An error that indicates the system can't find the message identifier.An error that indicates the request is invalid because it has too many constraints applied.An error that indicates an original transaction identifier wasn't found.An error response that indicates the original transaction identifier wasn’t found, but you can try again.An error that indicates the pagination token expired.An error that indicates that the request exceeded the rate limit.An error that indicates that the App Store server couldn’t find a notifications URL for your app in this environment.An error that indicates that the end date precedes the start date, or the two dates are equal.An error that indicates that the start date is earlier than the earliest allowed date.An error that indicates the server didn't find a subscription-renewal-date extension request for the request identifier and product identifier you provided.An error that indicates the subscription doesn't qualify for a renewal-date extension due to its subscription state.An error that indicates the subscription doesn’t qualify for a renewal-date extension because it has already received the maximum extensions.An error that indicates that the test notification token is expired or the test notification status isn’t available.An error that indicates the endpoint expects an original transaction identifier.An error that indicates a transaction identifier wasn't found. -
Method Summary
Modifier and TypeMethodDescriptionlongstatic APIErrorfetchErrorResponseFromErrorCode(long errorCode) static APIErrorReturns the enum constant of this class with the specified name.static APIError[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
GENERAL_BAD_REQUEST
An error that indicates an invalid request.- See Also:
-
INVALID_APP_IDENTIFIER
An error that indicates an invalid app identifier.- See Also:
-
INVALID_REQUEST_REVISION
An error that indicates an invalid request revision.- See Also:
-
INVALID_TRANSACTION_ID
An error that indicates an invalid transaction identifier.- See Also:
-
INVALID_ORIGINAL_TRANSACTION_ID
An error that indicates an invalid original transaction identifier.- See Also:
-
INVALID_EXTEND_BY_DAYS
An error that indicates an invalid extend-by-days value.- See Also:
-
INVALID_EXTEND_REASON_CODE
An error that indicates an invalid reason code.- See Also:
-
INVALID_REQUEST_IDENTIFIER
An error that indicates an invalid request identifier.- See Also:
-
START_DATE_TOO_FAR_IN_PAST
An error that indicates that the start date is earlier than the earliest allowed date.- See Also:
-
START_DATE_AFTER_END_DATE
An error that indicates that the end date precedes the start date, or the two dates are equal.- See Also:
-
INVALID_PAGINATION_TOKEN
An error that indicates the pagination token is invalid.- See Also:
-
INVALID_START_DATE
An error that indicates the start date is invalid.- See Also:
-
INVALID_END_DATE
An error that indicates the end date is invalid.- See Also:
-
PAGINATION_TOKEN_EXPIRED
An error that indicates the pagination token expired.- See Also:
-
INVALID_NOTIFICATION_TYPE
An error that indicates the notification type or subtype is invalid.- See Also:
-
MULTIPLE_FILTERS_SUPPLIED
An error that indicates the request is invalid because it has too many constraints applied.- See Also:
-
INVALID_TEST_NOTIFICATION_TOKEN
An error that indicates the test notification token is invalid.- See Also:
-
INVALID_SORT
An error that indicates an invalid sort parameter.- See Also:
-
INVALID_PRODUCT_TYPE
An error that indicates an invalid product type parameter.- See Also:
-
INVALID_PRODUCT_ID
An error that indicates the product ID parameter is invalid.- See Also:
-
INVALID_SUBSCRIPTION_GROUP_IDENTIFIER
An error that indicates an invalid subscription group identifier.- See Also:
-
INVALID_EXCLUDE_REVOKED
Deprecated.An error that indicates the query parameter exclude-revoked is invalid.- See Also:
-
INVALID_IN_APP_OWNERSHIP_TYPE
An error that indicates an invalid in-app ownership type parameter.- See Also:
-
INVALID_EMPTY_STOREFRONT_COUNTRY_CODE_LIST
An error that indicates a required storefront country code is empty.- See Also:
-
INVALID_STOREFRONT_COUNTRY_CODE
An error that indicates a storefront code is invalid.- See Also:
-
INVALID_REVOKED
An error that indicates the revoked parameter contains an invalid value.- See Also:
-
INVALID_STATUS
An error that indicates the status parameter is invalid.- See Also:
-
INVALID_ACCOUNT_TENURE
An error that indicates the value of the account tenure field is invalid.- See Also:
-
INVALID_APP_ACCOUNT_TOKEN
An error that indicates the value of the app account token field is invalid.- See Also:
-
INVALID_CONSUMPTION_STATUS
An error that indicates the value of the consumption status field is invalid.- See Also:
-
INVALID_CUSTOMER_CONSENTED
An error that indicates the customer consented field is invalid or doesn’t indicate that the customer consented.- See Also:
-
INVALID_DELIVERY_STATUS
An error that indicates the value in the delivery status field is invalid.- See Also:
-
INVALID_LIFETIME_DOLLARS_PURCHASED
An error that indicates the value in the lifetime dollars purchased field is invalid.- See Also:
-
INVALID_LIFETIME_DOLLARS_REFUNDED
An error that indicates the value in the lifetime dollars refunded field is invalid.- See Also:
-
INVALID_PLATFORM
An error that indicates the value in the platform field is invalid.- See Also:
-
INVALID_PLAY_TIME
An error that indicates the value in the playtime field is invalid.- See Also:
-
INVALID_SAMPLE_CONTENT_PROVIDED
An error that indicates the value in the sample content provided field is invalid.- See Also:
-
INVALID_USER_STATUS
An error that indicates the value in the user status field is invalid.- See Also:
-
INVALID_TRANSACTION_NOT_CONSUMABLE
Deprecated.An error that indicates the transaction identifier doesn’t represent a consumable in-app purchase.- See Also:
-
INVALID_TRANSACTION_TYPE_NOT_SUPPORTED
An error that indicates the transaction identifier represents an unsupported in-app purchase type.- See Also:
-
APP_TRANSACTION_ID_NOT_SUPPORTED_ERROR
An error that indicates the endpoint doesn't support an app transaction ID.- See Also:
-
INVALID_IMAGE
An error that indicates the image that's uploading is invalid.- See Also:
-
HEADER_TOO_LONG
An error that indicates the header text is too long.- See Also:
-
BODY_TOO_LONG
An error that indicates the body text is too long.- See Also:
-
INVALID_LOCALE
An error that indicates the locale is invalid.- See Also:
-
ALT_TEXT_TOO_LONG
An error that indicates the alternative text for an image is too long.- See Also:
-
INVALID_APP_ACCOUNT_TOKEN_UUID_ERROR
An error that indicates the app account token value is not a valid UUID.- See Also:
-
FAMILY_TRANSACTION_NOT_SUPPORTED_ERROR
An error that indicates the transaction is for a product the customer obtains through Family Sharing, which the endpoint doesn’t support.- See Also:
-
TRANSACTION_ID_IS_NOT_ORIGINAL_TRANSACTION_ID_ERROR
An error that indicates the endpoint expects an original transaction identifier.- See Also:
-
SUBSCRIPTION_EXTENSION_INELIGIBLE
An error that indicates the subscription doesn't qualify for a renewal-date extension due to its subscription state.- See Also:
-
SUBSCRIPTION_MAX_EXTENSION
An error that indicates the subscription doesn’t qualify for a renewal-date extension because it has already received the maximum extensions.- See Also:
-
FAMILY_SHARED_SUBSCRIPTION_EXTENSION_INELIGIBLE
An error that indicates a subscription isn't directly eligible for a renewal date extension because the user obtained it through Family Sharing.- See Also:
-
MAXIMUM_NUMBER_OF_IMAGES_REACHED
An error that indicates when you reach the maximum number of uploaded images.- See Also:
-
MAXIMUM_NUMBER_OF_MESSAGES_REACHED
An error that indicates when you reach the maximum number of uploaded messages.- See Also:
-
MESSAGE_NOT_APPROVED
An error that indicates the message isn't in the approved state, so you can't configure it as a default message.- See Also:
-
IMAGE_NOT_APPROVED
An error that indicates the image isn't in the approved state, so you can't configure it as part of a default message.- See Also:
-
IMAGE_IN_USE
An error that indicates the image is currently in use as part of a message, so you can't delete it.- See Also:
-
ACCOUNT_NOT_FOUND
An error that indicates the App Store account wasn't found.- See Also:
-
ACCOUNT_NOT_FOUND_RETRYABLE
An error response that indicates the App Store account wasn’t found, but you can try again.- See Also:
-
APP_NOT_FOUND
An error that indicates the app wasn’t found.- See Also:
-
APP_NOT_FOUND_RETRYABLE
An error response that indicates the app wasn’t found, but you can try again.- See Also:
-
ORIGINAL_TRANSACTION_ID_NOT_FOUND
An error that indicates an original transaction identifier wasn't found.- See Also:
-
ORIGINAL_TRANSACTION_ID_NOT_FOUND_RETRYABLE
An error response that indicates the original transaction identifier wasn’t found, but you can try again.- See Also:
-
SERVER_NOTIFICATION_URL_NOT_FOUND
An error that indicates that the App Store server couldn’t find a notifications URL for your app in this environment.- See Also:
-
TEST_NOTIFICATION_NOT_FOUND
An error that indicates that the test notification token is expired or the test notification status isn’t available.- See Also:
-
STATUS_REQUEST_NOT_FOUND
An error that indicates the server didn't find a subscription-renewal-date extension request for the request identifier and product identifier you provided.- See Also:
-
TRANSACTION_ID_NOT_FOUND
An error that indicates a transaction identifier wasn't found.- See Also:
-
IMAGE_NOT_FOUND
An error that indicates the system can't find the image identifier.- See Also:
-
MESSAGE_NOT_FOUND
An error that indicates the system can't find the message identifier.- See Also:
-
APP_TRANSACTION_DOES_NOT_EXIST_ERROR
An error response that indicates an app transaction doesn’t exist for the specified customer.- See Also:
-
IMAGE_ALREADY_EXISTS
An error that indicates the image identifier already exists.- See Also:
-
MESSAGE_ALREADY_EXISTS
An error that indicates the message identifier already exists.- See Also:
-
RATE_LIMIT_EXCEEDED
An error that indicates that the request exceeded the rate limit.- See Also:
-
GENERAL_INTERNAL
An error that indicates a general internal error.- See Also:
-
GENERAL_INTERNAL_RETRYABLE
An error response that indicates an unknown error occurred, but you can try again.- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
fetchErrorResponseFromErrorCode
-
errorCode
public long errorCode()
-