Package 

Enum HCaptchaError

  • All Implemented Interfaces:
    java.io.Serializable , java.lang.Comparable

    
    public enum HCaptchaError
     implements Serializable
                        

    Enum with all possible hCaptcha errors. It contains both errors related to the android sdk instance and js client errors. More info about js client errors here: https://docs.hcaptcha.com/configuration#error-codes

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private final int errorId
      private final String message
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      ERROR

      Generic error for unknown situations - should never happen.

      INSECURE_HTTP_REQUEST_ERROR

      Insecure HTTP request intercepted

      INVALID_CUSTOM_THEME

      Invalid custom theme

      RATE_LIMITED

      Rate limited due to too many tries.

      CHALLENGE_CLOSED

      User closed the challenge by pressing `back` button or touching the outside of the dialog.

      TOKEN_TIMEOUT

      hCaptcha token expired

      SESSION_TIMEOUT

      hCaptcha challenge expired

      INTERNAL_ERROR

      User may need to select the checkbox or if invisible programmatically call execute toinitiate the challenge again.

      CHALLENGE_ERROR

      User may need to select the checkbox or if invisible programmatically call execute toinitiate the challenge again.

      INVALID_DATA

      Invalid data is not accepted by endpoints.

      NETWORK_ERROR

      Internet connection is missing.Make sure AndroidManifest requires internet permission: {@code {@literal <}uses-permission android:name="android.permission.INTERNET" /{@literal >}}