HttpException constructor

HttpException(
  1. Uri reference,
  2. BaseResponse response, {
  3. String? message,
})

Create an exception of reference and response.

An optional message can be given, or it's resolved from reference and response.

Implementation

HttpException(Uri reference, this.response, {String? message})
    : super(message ?? _message(reference, response), reference: reference);