this post was submitted on 15 May 2024
30 points (100.0% liked)

Android Development

477 readers
1 users here now

Welcome to the programming.dev Android development community!

The Android robot is reproduced or modified from work created and shared by Google and used according to terms described in the Creative Commons 3.0 Attribution License

founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 1 points 1 month ago (1 children)

I hoped to be burned alive like in the good ol' times.

[–] [email protected] 3 points 1 month ago* (last edited 1 month ago) (2 children)

I hereby sentence you to writing exception handling code in viewmodels with the following requirements:

  • exceptions may be native
  • exceptions must be defined in separate modules for Clean Architecture
  • all calls to native methods must use callbacks for Objective-C compatibility
  • you must launch a separate coroutine when rethrowing some (TBD) exceptions to prevent the exception from being caught by a parent other than the root exception handler (or the calling thread!)
  • you must use ViewModelScope except ~~when writing to SharedPreferences~~
  • you should be using DataStore, heathen
[–] [email protected] 1 points 1 month ago (1 children)

That was painful even to read...

[–] [email protected] 3 points 1 month ago (1 children)

throw NotReadingThatException

[–] [email protected] 1 points 1 month ago