UnauthorizedException constructor

const UnauthorizedException(
  1. String message
)

The exception is thrown when an unauthorized request is made.

Response from the server:

{
  "deatil": "Invalid secret key",
}

Implementation

const UnauthorizedException(String message) : super(message);