Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 2 additions & 7 deletions packages/powersync_core/lib/src/exceptions.dart
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class SyncResponseException implements Exception {
final details = _stringOrFirst(decoded['error']?['details']) ?? body;
final message = '${response.reasonPhrase ?? "Request failed"}: $details';
return SyncResponseException(response.statusCode, message);
} on Error catch (_) {
} on Exception catch (_) {
return SyncResponseException(
response.statusCode,
response.reasonPhrase ?? "Request failed",
Expand All @@ -58,12 +58,7 @@ class SyncResponseException implements Exception {
final details = _stringOrFirst(decoded['error']?['details']) ?? body;
final message = '${response.reasonPhrase ?? "Request failed"}: $details';
return SyncResponseException(response.statusCode, message);
} on FormatException catch (_) {
return SyncResponseException(
response.statusCode,
response.reasonPhrase ?? "Request failed",
);
} on Error catch (_) {
} on Exception catch (_) {
return SyncResponseException(
response.statusCode,
response.reasonPhrase ?? "Request failed",
Expand Down