# AuthorizeErrorCode

enum AuthorizeErrorCode : Enum<AuthorizeErrorCode> , ErrorCode

Possible error codes that can be returned as a result of a call to AuthorizationManager.authorize.

## Entries

NO_NETWORK
Link copied to clipboard
NO_NETWORK

Mobile Payments SDK could not connect to the network.

OBSOLETE_SDK
Link copied to clipboard
OBSOLETE_SDK

The SDK version is obsolete and must be updated. This error is only triggered in debuggable builds when the obsolete SDK feature flag is enabled.

UNSUPPORTED_COUNTRY
Link copied to clipboard
UNSUPPORTED_COUNTRY

Usage of Mobile Payments SDK is not allowed in this country.

USAGE_ERROR
Link copied to clipboard
USAGE_ERROR

AuthorizationManager.authorize was used in an unexpected or unsupported way. See Result.Failure.debugCode and Result.Failure.debugMessage for more information.

## Properties

entries
Link copied to clipboard
val entries: EnumEntries<AuthorizeErrorCode>

Returns a representation of an immutable list of all enum entries, in the order they're declared.

isUsageError
Link copied to clipboard
open override val isUsageError: Boolean

Returns `true` if the error is a usage error, `false` otherwise.

name
Link copied to clipboard
val name: String
ordinal
Link copied to clipboard
val ordinal: Int

## Functions

valueOf
Link copied to clipboard
fun valueOf(value: String): AuthorizeErrorCode

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

values
Link copied to clipboard
fun values(): Array<AuthorizeErrorCode>

Returns an array containing the constants of this enum type, in the order they're declared.