UnAuthorizedException constructor

const UnAuthorizedException({
  1. required String message,
  2. StackTrace? stackTrace,
})

Exception thrown when a api is missing Authorization header.

Implementation

const UnAuthorizedException({
  required super.message,
  super.stackTrace,
}) : super(code: 401);