ForbiddenException constructor

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

Creates a ForbiddenException with an optional custom message.

Implementation

const ForbiddenException({String? message, super.originalException, super.errorCode, super.traceId})
  : super(message: message ?? "You do not have permission to perform this action.");