RecaptchaEnterprise Framework Reference

RecaptchaErrorCode

enum RecaptchaErrorCode : NSInteger {}

List of errors that can be returned from the SDK.

  • Unknown error occurred during the workflow.

    Declaration

    Swift

    case errorCodeUnknown = 0

    Objective-C

    RecaptchaErrorCodeUnknown = 0
  • reCAPTCHA cannot connect to Google servers, please make sure the app has network access.

    Declaration

    Swift

    case errorNetworkError = 1

    Objective-C

    RecaptchaErrorNetworkError = 1
  • The site key used to call reCAPTCHA is invalid.

    Declaration

    Swift

    case errorInvalidSiteKey = 2

    Objective-C

    RecaptchaErrorInvalidSiteKey = 2
  • Cannot create a reCAPTCHA client because the key used cannot be used on iOS.

    Please register new site key with the key type set to “iOS App” via Create Key.

    Declaration

    Swift

    case erroInvalidKeyType = 3

    Objective-C

    RecaptchaErroInvalidKeyType = 3
  • Cannot create a reCAPTCHA client because the site key used doesn’t support the calling package.

    Declaration

    Swift

    case errorInvalidPackageName = 4

    Objective-C

    RecaptchaErrorInvalidPackageName = 4
  • reCAPTCHA cannot accept the action used, see custom action guidelines

    Declaration

    Swift

    case errorInvalidAction = 5

    Objective-C

    RecaptchaErrorInvalidAction = 5
  • reCaptcha cannot accept timeout provided, see timeout guidelines

    Declaration

    Swift

    case errorInvalidTimeout = 6

    Objective-C

    RecaptchaErrorInvalidTimeout = 6
  • reCAPTCHA has faced an internal error, please try again in a bit.

    Declaration

    Swift

    case errorCodeInternalError = 100

    Objective-C

    RecaptchaErrorCodeInternalError = 100