pub enum FxaError {
Authentication,
Network,
NoExistingAuthFlow,
WrongAuthFlow,
OriginMismatch,
SyncScopedKeyMissingInServerResponse,
Panic,
Other(String),
}
Expand description
Public error type thrown by many [FirefoxAccount
] operations.
Precise details of the error are hidden from consumers. The type of the error indicates how the calling code should respond.
Variants§
Authentication
Thrown when there was a problem with the authentication status of the account, such as an expired token. The application should check its authorization status to see whether it has been disconnected, or retry the operation with a freshly-generated token.
Network
Thrown if an operation fails due to network access problems. The application may retry at a later time once connectivity is restored.
NoExistingAuthFlow
Thrown if the application attempts to complete an OAuth flow when no OAuth flow
has been initiated. This may indicate a user who navigated directly to the OAuth
redirect_uri
for the application.
Note: This error is currently only thrown in the Swift language bindings.
WrongAuthFlow
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.
Note: This error is currently only thrown in the Swift language bindings.
OriginMismatch
Origin mismatch when handling a pairing flow
The most likely cause of this is that a user tried to pair together two firefox instances that are configured to use different servers.
SyncScopedKeyMissingInServerResponse
A scoped key was missing in the server response when requesting the OLD_SYNC scope.
Panic
Thrown if there is a panic in the underlying Rust code.
Note: This error is currently only thrown in the Kotlin language bindings.
Other(String)
A catch-all for other unspecified errors.
Trait Implementations§
source§impl Error for FxaError
impl Error for FxaError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
Auto Trait Implementations§
impl Freeze for FxaError
impl RefUnwindSafe for FxaError
impl Send for FxaError
impl Sync for FxaError
impl Unpin for FxaError
impl UnwindSafe for FxaError
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
§unsafe fn consume_handle(handle: Handle) -> Arc<T>
unsafe fn consume_handle(handle: Handle) -> Arc<T>
Arc<>
Read more