APIError constructor

APIError({
  1. required APIStatus status,
  2. required String reason,
  3. required String code,
  4. String? secondaryCode,
  5. int? bannedUntil,
  6. int? maxCharacterLength,
  7. String? translatedError,
  8. CustomConfigParameters? customConfig,
})

Returns a new APIError instance.

Implementation

APIError({
  required this.status,
  required this.reason,
  required this.code,
  this.secondaryCode,
  this.bannedUntil,
  this.maxCharacterLength,
  this.translatedError,
  this.customConfig,
});