Warning: Some posts on this platform may contain adult material intended for mature audiences only. Viewer discretion is advised. By clicking ‘Continue’, you confirm that you are 18 years or older and consent to viewing explicit content.
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
Uh-oh heretic spotted. Recant everything you’ve said or I’ll make you justify every line of your manifest to a robot!
I hoped to be burned alive like in the good ol’ times.
I hereby sentence you to writing exception handling code in viewmodels with the following requirements:
when writing to SharedPreferenceswtf man
That was painful even to read…
throw NotReadingThatException
based