AuthException class abstract

harmony_auth interceptor exception.

If AuthExceptions happens DioException will have type of DioExceptionType.other and error of type AuthException.

You can use isAuthException extension function on DioException to check if error is from auth exception.

When you get AuthException, it means that you should reauthenticate the current user and no token is available.

AuthException is also used in AuthRest and AuthRepository to indicate refresh errors due to invalid refresh tokens.

Implemented types

Constructors

AuthException()

Properties

hashCode int
The hash code for this object.
no setterinherited
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
A string representation of this object.
inherited

Operators

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