Class IPProtectionController.IPProxyException
Object
Throwable
Exception
RuntimeException
org.mozilla.geckoview.IPProtectionController.IPProxyException
- All Implemented Interfaces:
Serializable
- Enclosing class:
IPProtectionController
Exception type for IP proxy errors.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic @interfaceError codes forIPProtectionController.IPProxyException. -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal intThe error code for this exception.static final intActivation was canceled (e.g.static final intThe user needs to authenticate again before the proxy can be used.static final intThe proxy service failed in a way it cannot recover from.static final intThe proxy connection never came up.static final intEnrolling the user with the proxy service failed.static final intThe proxy failed for a reason it did not report.static final intThe proxy violated one of its own invariants.static final intThe proxy service returned a response that could not be understood.static final intThe network is unavailable.static final intNo authentication provider is installed.static final intNo Play Integrity provider is installed.static final intPlay Integrity did not return a token.static final intThe credentials were valid but the user has no proxy subscription.static final intActivation was requested while the proxy was not ready to be activated.static final intNo proxy pass was returned from the server.static final intThe bandwidth limit has been reached.static final intNo server was found for this location.static final intThe list of proxy servers could not be fetched.static final intActivation timed out.static final intAn unexpected error occurred.static final intThe proxy is not available in the region of the user. -
Method Summary
Modifier and TypeMethodDescriptionfromErrorString(String error) Converts a raw error string from the proxy into a typedIPProtectionController.IPProxyException.Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
ERROR_UNKNOWN
public static final int ERROR_UNKNOWNAn unexpected error occurred.- See Also:
-
ERROR_NETWORK
public static final int ERROR_NETWORKThe network is unavailable.- See Also:
-
ERROR_TIMEOUT
public static final int ERROR_TIMEOUTActivation timed out.- See Also:
-
ERROR_PASS_UNAVAILABLE
public static final int ERROR_PASS_UNAVAILABLENo proxy pass was returned from the server.- See Also:
-
ERROR_SERVER_NOT_FOUND
public static final int ERROR_SERVER_NOT_FOUNDNo server was found for this location.- See Also:
-
ERROR_ACTIVATION_CANCELED
public static final int ERROR_ACTIVATION_CANCELEDActivation was canceled (e.g. deactivate was called mid-activation).- See Also:
-
ERROR_CATASTROPHIC
public static final int ERROR_CATASTROPHICThe proxy service failed in a way it cannot recover from.- See Also:
-
ERROR_VPN_UNAVAILABLE
public static final int ERROR_VPN_UNAVAILABLEThe proxy is not available in the region of the user.- See Also:
-
ERROR_GENERIC
public static final int ERROR_GENERICThe proxy failed for a reason it did not report.- See Also:
-
ERROR_NOT_READY
public static final int ERROR_NOT_READYActivation was requested while the proxy was not ready to be activated.- See Also:
-
ERROR_QUOTA_EXHAUSTED
public static final int ERROR_QUOTA_EXHAUSTEDThe bandwidth limit has been reached.- See Also:
-
ERROR_AUTH_REQUIRED
public static final int ERROR_AUTH_REQUIREDThe user needs to authenticate again before the proxy can be used.- See Also:
-
ERROR_ENROLLMENT_FAILED
public static final int ERROR_ENROLLMENT_FAILEDEnrolling the user with the proxy service failed.- See Also:
-
ERROR_NO_AUTH_PROVIDER
public static final int ERROR_NO_AUTH_PROVIDERNo authentication provider is installed.- See Also:
-
ERROR_INVALID_RESPONSE
public static final int ERROR_INVALID_RESPONSEThe proxy service returned a response that could not be understood.- See Also:
-
ERROR_CONNECTION_FAILED
public static final int ERROR_CONNECTION_FAILEDThe proxy connection never came up.- See Also:
-
ERROR_SERVERLIST_UNAVAILABLE
public static final int ERROR_SERVERLIST_UNAVAILABLEThe list of proxy servers could not be fetched.- See Also:
-
ERROR_INTERNAL
public static final int ERROR_INTERNALThe proxy violated one of its own invariants.- See Also:
-
ERROR_NOT_ENTITLED
public static final int ERROR_NOT_ENTITLEDThe credentials were valid but the user has no proxy subscription.- See Also:
-
ERROR_NO_GPI_PROVIDER
public static final int ERROR_NO_GPI_PROVIDERNo Play Integrity provider is installed.- See Also:
-
ERROR_NO_GPI_TOKEN
public static final int ERROR_NO_GPI_TOKENPlay Integrity did not return a token.- See Also:
-
code
public final int codeThe error code for this exception. One of theIPProtectionController.IPProxyException.Codeconstants.
-
-
Method Details
-
fromErrorString
@AnyThread @NonNull public static IPProtectionController.IPProxyException fromErrorString(@Nullable String error) Converts a raw error string from the proxy into a typedIPProtectionController.IPProxyException.- Parameters:
error- The error string returned by the proxy, or null.- Returns:
- An
IPProtectionController.IPProxyExceptionwith the correspondingIPProtectionController.IPProxyException.Code.
-