Package org.mozilla.geckoview
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 network is unavailable.static final intNo proxy pass was returned from the server.static final intNo server was found for this location.static final intActivation timed out.static final intAn unexpected error occurred. -
Method Summary
Modifier and TypeMethodDescriptionfromErrorString(String error) Converts a raw error string from the proxy into a typedIPProtectionController.IPProxyException.Methods inherited from class java.lang.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:
-
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.
-