Error constructor

Error({
  1. required int statusCode,
  2. required int errorCode,
  3. required String message,
  4. Object? details,
  5. List<String> validationErrors = const [],
})

Returns a new Error instance.

Implementation

Error({
  required this.statusCode,
  required this.errorCode,
  required this.message,
  this.details,
  this.validationErrors = const [],
});