HttpException constructor

const HttpException({
  1. required HttpStatus httpStatus,
  2. required String detail,
  3. Map<String, dynamic>? data,
  4. Uri? uri,
})

Constructs an HttpException with detailed information about the failure.

  • httpStatus: The HTTP status code associated with the exception.

  • message: A human-readable message providing more details about the error.

  • data: Optional. Additional data about the exception. It can carry extra information pertinent to the error.

  • uri: Optional. The URI associated with the HTTP request that resulted in this error.

Implementation

const HttpException({
  required this.httpStatus,
  required this.detail,
  this.data,
  this.uri,
});