reportHttpError static method
上报Http请求错误信息
Implementation
static Future<void> reportHttpError(
dynamic err,
dynamic request, {
bool toast = true,
}) async {
// 添加错误标签
Sentry.addBreadcrumb(
Breadcrumb(
message: 'Http Error',
category: SentryLoggerCategory.http,
data: {
'request': request,
'toast': toast,
},
),
);
/// 上报信息
_baseReport(
err,
null,
log: false,
);
}