UnauthorizedException constructor

UnauthorizedException({
  1. String? url,
  2. String? message,
  3. String? method,
  4. Exception? cause,
})

Current user has not been authenticated and has attempted to access protected resources. Perhaps the user needs to authenticate.

Implementation

UnauthorizedException({String? url, String? message, String? method, Exception? cause}) : super(401, url: url, message: message, method: method, cause: cause);