Question
What are the different types of errors represented by `DioError.type`?
Asked by: USER7182
70 Viewed
70 Answers
Responsive Ad After Question
Answer (70)
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).