Bug fixes
This commit is contained in:
@@ -75,9 +75,11 @@ class ApiClientService {
|
||||
);
|
||||
} on DioException {
|
||||
return const ApiResponse(successful: false);
|
||||
} catch (e, stackTrace) {
|
||||
} on FormatException catch (e, stackTrace) {
|
||||
Sentry.captureException(e, stackTrace: stackTrace);
|
||||
return const ApiResponse(successful: false);
|
||||
} catch (_) {
|
||||
return const ApiResponse(successful: false);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -97,9 +99,11 @@ class ApiClientService {
|
||||
);
|
||||
} on DioException {
|
||||
return const ApiResponse(successful: false);
|
||||
} catch (e, stackTrace) {
|
||||
} on FormatException catch (e, stackTrace) {
|
||||
Sentry.captureException(e, stackTrace: stackTrace);
|
||||
return const ApiResponse(successful: false);
|
||||
} catch (_) {
|
||||
return const ApiResponse(successful: false);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -119,9 +123,11 @@ class ApiClientService {
|
||||
);
|
||||
} on DioException {
|
||||
return const ApiResponse(successful: false);
|
||||
} catch (e, stackTrace) {
|
||||
} on FormatException catch (e, stackTrace) {
|
||||
Sentry.captureException(e, stackTrace: stackTrace);
|
||||
return const ApiResponse(successful: false);
|
||||
} catch (_) {
|
||||
return const ApiResponse(successful: false);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -139,9 +145,11 @@ class ApiClientService {
|
||||
);
|
||||
} on DioException {
|
||||
return const ApiResponse(successful: false);
|
||||
} catch (e, stackTrace) {
|
||||
} on FormatException catch (e, stackTrace) {
|
||||
Sentry.captureException(e, stackTrace: stackTrace);
|
||||
return const ApiResponse(successful: false);
|
||||
} catch (_) {
|
||||
return const ApiResponse(successful: false);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -157,9 +165,11 @@ class ApiClientService {
|
||||
);
|
||||
} on DioException {
|
||||
return const ApiResponse(successful: false);
|
||||
} catch (e, stackTrace) {
|
||||
} on FormatException catch (e, stackTrace) {
|
||||
Sentry.captureException(e, stackTrace: stackTrace);
|
||||
return const ApiResponse(successful: false);
|
||||
} catch (_) {
|
||||
return const ApiResponse(successful: false);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -179,9 +189,11 @@ class ApiClientService {
|
||||
);
|
||||
} on DioException {
|
||||
return const ApiResponse(successful: false);
|
||||
} catch (e, stackTrace) {
|
||||
} on FormatException catch (e, stackTrace) {
|
||||
Sentry.captureException(e, stackTrace: stackTrace);
|
||||
return const ApiResponse(successful: false);
|
||||
} catch (_) {
|
||||
return const ApiResponse(successful: false);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -197,9 +209,11 @@ class ApiClientService {
|
||||
);
|
||||
} on DioException {
|
||||
return const ApiResponse(successful: false);
|
||||
} catch (e, stackTrace) {
|
||||
} on FormatException catch (e, stackTrace) {
|
||||
Sentry.captureException(e, stackTrace: stackTrace);
|
||||
return const ApiResponse(successful: false);
|
||||
} catch (_) {
|
||||
return const ApiResponse(successful: false);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -212,9 +226,11 @@ class ApiClientService {
|
||||
);
|
||||
} on DioException {
|
||||
return const ApiResponse(successful: false);
|
||||
} catch (e, stackTrace) {
|
||||
} on FormatException catch (e, stackTrace) {
|
||||
Sentry.captureException(e, stackTrace: stackTrace);
|
||||
return const ApiResponse(successful: false);
|
||||
} catch (_) {
|
||||
return const ApiResponse(successful: false);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -224,9 +240,11 @@ class ApiClientService {
|
||||
return const ApiResponse(successful: true);
|
||||
} on DioException {
|
||||
return const ApiResponse(successful: false);
|
||||
} catch (e, stackTrace) {
|
||||
} on FormatException catch (e, stackTrace) {
|
||||
Sentry.captureException(e, stackTrace: stackTrace);
|
||||
return const ApiResponse(successful: false);
|
||||
} catch (_) {
|
||||
return const ApiResponse(successful: false);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -242,9 +260,11 @@ class ApiClientService {
|
||||
);
|
||||
} on DioException {
|
||||
return const ApiResponse(successful: false);
|
||||
} catch (e, stackTrace) {
|
||||
} on FormatException catch (e, stackTrace) {
|
||||
Sentry.captureException(e, stackTrace: stackTrace);
|
||||
return const ApiResponse(successful: false);
|
||||
} catch (_) {
|
||||
return const ApiResponse(successful: false);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -266,9 +286,11 @@ class ApiClientService {
|
||||
return const ApiResponse(successful: true);
|
||||
} on DioException {
|
||||
return const ApiResponse(successful: false);
|
||||
} catch (e, stackTrace) {
|
||||
} on FormatException catch (e, stackTrace) {
|
||||
Sentry.captureException(e, stackTrace: stackTrace);
|
||||
return const ApiResponse(successful: false);
|
||||
} catch (_) {
|
||||
return const ApiResponse(successful: false);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -284,9 +306,11 @@ class ApiClientService {
|
||||
);
|
||||
} on DioException {
|
||||
return const ApiResponse(successful: false);
|
||||
} catch (e, stackTrace) {
|
||||
} on FormatException catch (e, stackTrace) {
|
||||
Sentry.captureException(e, stackTrace: stackTrace);
|
||||
return const ApiResponse(successful: false);
|
||||
} catch (_) {
|
||||
return const ApiResponse(successful: false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user