HttpException constructor
const
HttpException({})
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,
});