UnauthorizedException constructor

const UnauthorizedException([
  1. String message = 'Unauthorized',
  2. dynamic data
])

Implementation

const UnauthorizedException([String message = 'Unauthorized', dynamic data])
    : super(statusCode: 401, message: message, data: data);