From 508b552fc73743c8f42b232ab64b8cc26c296985 Mon Sep 17 00:00:00 2001 From: Roland Geider Date: Wed, 20 May 2026 21:02:15 +0200 Subject: [PATCH] Remove unused fatalResponseCodes This was originally copied from the powersync demo app, and is not used here --- lib/powersync/connector.dart | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/lib/powersync/connector.dart b/lib/powersync/connector.dart index 6fcaa3a11..476d5798d 100644 --- a/lib/powersync/connector.dart +++ b/lib/powersync/connector.dart @@ -28,20 +28,6 @@ import 'package:wger/powersync/api_client.dart'; final logger = Logger('powersync-django'); -/// Postgres Response codes that we cannot recover from by retrying. -final List fatalResponseCodes = [ - // Class 22 — Data Exception - // Examples include data type mismatch. - RegExp(r'^22...$'), - - // Class 23 — Integrity Constraint Violation. - // Examples include NOT NULL, FOREIGN KEY and UNIQUE violations. - RegExp(r'^23...$'), - - // INSUFFICIENT PRIVILEGE - typically a row-level security violation - RegExp(r'^42501$'), -]; - /// Exception thrown when the wger backend returned a 200 response whose /// body indicates that the operation was rejected (validation failure, /// missing object, ownership violation, unknown table…). Carries the