working on backend-side translations

This commit is contained in:
2025-12-15 13:44:55 +01:00
parent 9f0857e753
commit 0c909d6d7c
8 changed files with 46 additions and 48 deletions

View File

@@ -83,7 +83,7 @@ public class SqliteDb extends BaseDb implements ContactDb{
rs.close();
return contacts;
} catch (SQLException e) {
throw databaseException(FAILED_TO_LOAD_CONTACTS_OF_USER,userId).causedBy(e);
throw databaseException(FAILED_TO_LOAD_ENTITIES_OF_OWNER,"contacts",userId).causedBy(e);
}
}
@@ -97,7 +97,7 @@ public class SqliteDb extends BaseDb implements ContactDb{
if (contact != null) return contact;
throw notFound(FAILED_TO_LOAD_ENTITY_BY_ID, "contact", contactId);
} catch (SQLException e) {
throw databaseException(FAILED_TO_LOAD_CONTACTS_OF_USER,userId).causedBy(e);
throw databaseException(FAILED_TO_LOAD_ENTITIES_OF_OWNER,"contacts",userId).causedBy(e);
}
}