UnauthorizedException constructor

const UnauthorizedException({
  1. String? message,
  2. DioException? originalException,
  3. String? errorCode,
  4. String? traceId,
})

Creates an UnauthorizedException with an optional custom message.

Implementation

const UnauthorizedException({String? message, super.originalException, super.errorCode, super.traceId})
  : super(message: message ?? "Your session has expired. Please log in again.");