Fxa Exception
Generic error type thrown by many `FirefoxAccount` operations.
Precise details of the error are hidden from consumers, mostly due to limitations of how we expose this API to other languages. The type of the error indicates how the calling code should respond.
Inheritors
Types
Thrown when there was a problem with the authentication status of the account, such as an expired token. The application should * FirefoxAccount::check_authorization_status to see whether it has been disconnected, or retry the operation with a freshly-generated token.
Thrown if an operation fails due to network access problems. The application may retry at a later time once connectivity is restored.
Thrown if the application attempts to complete an OAuth flow when no OAuth flow has been initiated for that state. This may indicate a user who navigated directly to the OAuth redirect_uri
for the application.
Origin mismatch when handling a pairing flow
A catch-all for other unspecified errors.
Thrown if there is a panic in the underlying Rust code.
The sync scoped key was missing in the server response
Thrown if the application attempts to complete an OAuth flow, but the state tokens returned from the Firefox Account server do not match with the ones expected by the client. This may indicate a stale OAuth flow, or potentially an attempted hijacking of the flow by an attacker. The signin attempt cannot be completed.