ServerException constructor

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

Creates a ServerException with an optional custom message.

Implementation

const ServerException({String? message, super.originalException, super.errorCode, super.traceId})
  : super(message: message ?? "A server error occurred. Please try again later.");