Whether is throw by cancel
static bool isCancel(DioError e) { return e.type == DioErrorType.cancel; }