pub enum AuthenticatorError {
Show 15 variants
PrimitiveError(PrimitiveError),
AccountDoesNotExist,
AccountAlreadyExists,
ContractError(Error),
NetworkError(Error),
PublicKeyNotFound,
GatewayError {
status: StatusCode,
body: String,
},
IndexerError {
status: StatusCode,
body: String,
},
Timeout,
InvalidConfig {
attribute: &'static str,
reason: String,
},
InvalidCredentialForProofRequest,
RegistrationError {
error_code: String,
error_message: String,
},
ProofError(ProofError),
InvalidIndexerPubkeySlot {
slot_index: usize,
max_supported_slot: usize,
},
Generic(String),
}Expand description
Errors that can occur when interacting with the Authenticator.
Variants§
PrimitiveError(PrimitiveError)
Primitive error
AccountDoesNotExist
This operation requires a registered account and an account is not registered
for this authenticator. Call create_account first to register it.
AccountAlreadyExists
The account already exists for this authenticator. Call leaf_index to get the leaf index.
ContractError(Error)
An error occurred while interacting with the EVM contract.
NetworkError(Error)
Network/HTTP request error.
PublicKeyNotFound
Public key not found in the Authenticator public key set. Usually indicates the local state is out of sync with the registry.
GatewayError
Gateway returned an error response.
IndexerError
Indexer returned an error response.
Timeout
Account creation timed out while polling for confirmation.
InvalidConfig
Configuration is invalid or missing required values.
Fields
InvalidCredentialForProofRequest
The provided credential is not valid for the provided proof request.
RegistrationError
Error during the World ID registration process.
This usually occurs from an on-chain revert.
Fields
ProofError(ProofError)
Error on proof generation
InvalidIndexerPubkeySlot
Indexer returned an authenticator key slot that exceeds supported key capacity.
Fields
Generic(String)
Generic error for other unexpected issues.
Trait Implementations§
Source§impl Debug for AuthenticatorError
impl Debug for AuthenticatorError
Source§impl Display for AuthenticatorError
impl Display for AuthenticatorError
Source§impl Error for AuthenticatorError
impl Error for AuthenticatorError
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
use the Display impl or to_string()
Source§impl From<Error> for AuthenticatorError
impl From<Error> for AuthenticatorError
Source§fn from(source: Error) -> AuthenticatorError
fn from(source: Error) -> AuthenticatorError
Source§impl From<Error> for AuthenticatorError
impl From<Error> for AuthenticatorError
Source§fn from(source: Error) -> AuthenticatorError
fn from(source: Error) -> AuthenticatorError
Source§impl From<PrimitiveError> for AuthenticatorError
impl From<PrimitiveError> for AuthenticatorError
Source§fn from(source: PrimitiveError) -> AuthenticatorError
fn from(source: PrimitiveError) -> AuthenticatorError
Source§impl From<ProofError> for AuthenticatorError
impl From<ProofError> for AuthenticatorError
Source§fn from(source: ProofError) -> AuthenticatorError
fn from(source: ProofError) -> AuthenticatorError
Auto Trait Implementations§
impl Freeze for AuthenticatorError
impl !RefUnwindSafe for AuthenticatorError
impl Send for AuthenticatorError
impl Sync for AuthenticatorError
impl Unpin for AuthenticatorError
impl UnsafeUnpin for AuthenticatorError
impl !UnwindSafe for AuthenticatorError
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.