pachli-android/core
Nik Clayton efd1c8e556
refactor: Use the PachliError type for ApiError (#739)
In the previous code `PachliError` could correctly chain errors and
generate error messages, `ApiError` didn't, which is why there was the
temporary `ApiError.fmt()` extension function.

Rewrite `ApiError` to implement `PachliError` so it gets these benefits
and to reduce the number of different error-handling mechanisms in the
code.

Main changes:

- `PachliError` is now an interface so it can be extended by other
  error interfaces.
- All the `ApiError` subclasses implement `PachliError`, and can
  specify the error string and interpolated variables at the point of
  declaration.
- Update `ListsRepository` and `ServerRepository` to return
  `PachliError` subclasses.
2024-06-12 10:22:27 +02:00
..
accounts fix: Ensure logging out accounts completes (#515) 2024-03-10 12:25:12 +01:00
activity fix: Only include transitionKind in intents for Pachli activities (#716) 2024-05-30 14:05:42 +02:00
common refactor: Use the PachliError type for ApiError (#739) 2024-06-12 10:22:27 +02:00
data refactor: Use the PachliError type for ApiError (#739) 2024-06-12 10:22:27 +02:00
database refactor: Remove `TabData` type (#576) 2024-03-30 23:27:25 +01:00
designsystem refactor: Move string post_username_format to core.designsystem (#736) 2024-06-10 21:06:31 +02:00
model refactor: Remove `TabData` type (#576) 2024-03-30 23:27:25 +01:00
navigation ci: Simplify and improve CI speed (#615) 2024-04-15 15:24:07 +02:00
network refactor: Use the PachliError type for ApiError (#739) 2024-06-12 10:22:27 +02:00
network-test change: Move MediaUploadApi to the correct package 2024-04-30 16:23:34 +02:00
preferences refactor: Move CardViewMode to core.preferences (#729) 2024-06-10 16:28:55 +02:00
testing change: Remove unnecessary types 2024-04-30 16:23:34 +02:00
ui refactor: Use the PachliError type for ApiError (#739) 2024-06-12 10:22:27 +02:00
AndroidManifest.xml refactor: Start creating core modules (#286) 2023-12-04 16:58:36 +01:00