UnauthorizedException constructor

UnauthorizedException({
  1. bool silent = false,
  2. List<String> messages = const [],
  3. DioException? exception,
})

Creates a new instance of UnauthorizedException.

Optionally accepts parameters to specify if the exception should be silent, a list of messages explaining the reason for the unauthorized access, and any underlying DioException that provides further details regarding the authorization failure.

Implementation

UnauthorizedException({
  super.silent,
  super.messages,
  super.exception,
});