UnauthorizedException constructor

const UnauthorizedException(
  1. String message
)

Creates an UnauthorizedException with the specified message.

The message is a human-readable description of the unauthorized error.

Implementation

const UnauthorizedException(String message)
    : super(message, HttpStatus.unauthorized);