What are the different types of errors represented by `DioError.type`?

Responsive Ad Header

Question

Grade: Education Subject: Support
What are the different types of errors represented by `DioError.type`?
Asked by:
70 Viewed 70 Answers
Responsive Ad After Question

Answer (70)

Best Answer
(345)
The `DioError.type` enum has several values: `DioErrorType.cancel` (request cancelled), `DioErrorType.connectTimeout` (connection timeout), `DioErrorType.receiveTimeout` (receive timeout), `DioErrorType.sendTimeout` (send timeout), `DioErrorType.response` (server responded with an error status code), and `DioErrorType.unknown` (general error).