pachli-android/core/network
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
..
src refactor: Use the PachliError type for ApiError (#739) 2024-06-12 10:22:27 +02:00
build.gradle.kts fix: Prevent crash when Pachli is a share target (#659) 2024-04-28 18:19:13 +02:00
lint-baseline.xml refactor: Use the PachliError type for ApiError (#739) 2024-06-12 10:22:27 +02:00
proguard-rules.pro refactor: Start creating core modules (#286) 2023-12-04 16:58:36 +01:00