FxaException

sealed class FxaException : 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

Link copied to clipboard

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.

Link copied to clipboard
class Network(message: String) : FxaException

Thrown if an operation fails due to network access problems. The application may retry at a later time once connectivity is restored.

Link copied to clipboard

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.

Link copied to clipboard

Origin mismatch when handling a pairing flow

Link copied to clipboard
class Other(message: String) : FxaException

A catch-all for other unspecified errors.

Link copied to clipboard
class Panic(message: String) : FxaException

Thrown if there is a panic in the underlying Rust code.

Link copied to clipboard

The sync scoped key was missing in the server response

Link copied to clipboard

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.

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Properties

Link copied to clipboard
open val cause: Throwable?
Link copied to clipboard
open val message: String?