ResponseError constructor

ResponseError({
  1. required ErrorCode code,
  2. required String message,
  3. String? context,
  4. String? target,
})

Builds a ResponseError

  • code: The error code
  • message: The error message
  • context: The context of execution when the error ocurred
  • target: The target entity of the API that triggered this error

Implementation

ResponseError(
    {required this.code, required this.message, this.context, this.target});