Auth0DeleteAuthenticatorException class

An exception thrown when an error occurs during the deletion of an MFA (Multi-Factor Authentication) authenticator in Auth0.

This exception provides detailed error information when a request to remove an authenticator fails, including API errors, permission issues, or invalid requests. It should be caught and handled appropriately in the calling code.

Example Usage:

try {
  await auth0Client.deleteAuthenticator(request);
} on Auth0DeleteAuthenticatorException catch (e) {
  logger.error('Failed to delete authenticator: ${e.message}');
  showErrorToUser(e.message);
}
Implemented types

Constructors

Auth0DeleteAuthenticatorException(String message)
Creates a new Auth0DeleteAuthenticatorException instance.

Properties

hashCode int
The hash code for this object.
no setterinherited
message String
A detailed error message explaining why the authenticator deletion failed.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
Returns a formatted string representation of the exception.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited