Bug fixes

This commit is contained in:
Juan Gilsanz Polo
2024-03-24 02:46:30 +01:00
parent 75aa31ad11
commit 822c65c4e6
3 changed files with 297 additions and 263 deletions

View File

@@ -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);
}
}
}