HttpError constructor

HttpError(
  1. String? errorMessage,
  2. num statusCode
)

Constructs a new instance.

errorMessage A descriptive error message. statusCode The HTTP status code represented by this error.

Implementation

HttpError(String? errorMessage, num statusCode)
    : this.message = errorMessage,
      this.statusCode = statusCode;