RecaptchaErrorCode

enum RecaptchaErrorCode : Enum


Error status codes for the reCAPTCHA Enterprise API.

Summary

Enum Values

INTERNAL_ERROR

reCAPTCHA Enterprise has faced an internal error, please try again in a bit.

INVALID_ACTION

The user action is invalid.

INVALID_KEYTYPE

Cannot create a reCAPTCHA Enterprise client with a non-Android site key or a key not enabled for applications distributed outside of the Google Play Store.

INVALID_PACKAGE_NAME

Cannot create a reCAPTCHA Enterprise client because the site key used doesn't support the calling package.

INVALID_SITEKEY

The site key used to call reCAPTCHA Enterprise is invalid.

INVALID_TIMEOUT

The timeout provided for init/execute is invalid as we expect a minimum of 5000 milliseconds.

NETWORK_ERROR

reCAPTCHA Enterprise cannot connect to Google servers, please make sure the app has network access.

NO_NETWORK_FOUND

No network was found in the device.

UNKNOWN_ERROR

Unknown error occurred during the workflow.

Public functions

RecaptchaErrorCode
valueOf(value: String)

Returns the enum constant of this type with the specified name.

Array<RecaptchaErrorCode>

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

Public properties

Int
String

Enum Values

INTERNAL_ERROR

val RecaptchaErrorCode.INTERNAL_ERROR: RecaptchaErrorCode

reCAPTCHA Enterprise has faced an internal error, please try again in a bit.

INVALID_ACTION

val RecaptchaErrorCode.INVALID_ACTION: RecaptchaErrorCode

The user action is invalid. Use only letters and '_' when creating an action.

INVALID_KEYTYPE

val RecaptchaErrorCode.INVALID_KEYTYPE: RecaptchaErrorCode

Cannot create a reCAPTCHA Enterprise client with a non-Android site key or a key not enabled for applications distributed outside of the Google Play Store.

Register a new site key with the key type set to "Android app" or enable the option for non-Google Play Store applications. Create key.

INVALID_PACKAGE_NAME

val RecaptchaErrorCode.INVALID_PACKAGE_NAME: RecaptchaErrorCode

Cannot create a reCAPTCHA Enterprise client because the site key used doesn't support the calling package.

INVALID_SITEKEY

val RecaptchaErrorCode.INVALID_SITEKEY: RecaptchaErrorCode

The site key used to call reCAPTCHA Enterprise is invalid.

INVALID_TIMEOUT

val RecaptchaErrorCode.INVALID_TIMEOUT: RecaptchaErrorCode

The timeout provided for init/execute is invalid as we expect a minimum of 5000 milliseconds.

NETWORK_ERROR

val RecaptchaErrorCode.NETWORK_ERROR: RecaptchaErrorCode

reCAPTCHA Enterprise cannot connect to Google servers, please make sure the app has network access.

NO_NETWORK_FOUND

val RecaptchaErrorCode.NO_NETWORK_FOUND: RecaptchaErrorCode

No network was found in the device.

UNKNOWN_ERROR

val RecaptchaErrorCode.UNKNOWN_ERROR: RecaptchaErrorCode

Unknown error occurred during the workflow.

Public functions

valueOf

fun valueOf(value: String): RecaptchaErrorCode

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.)

Throws
kotlin.IllegalArgumentException

if this enum type has no constant with the specified name

values

fun values(): Array<RecaptchaErrorCode>

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

This method may be used to iterate over the constants.

Public properties

errorCode

val errorCode: Int

errorMessage

val errorMessage: String