ankushg
06/30/2021, 4:08 PMmkrussel
06/30/2021, 5:30 PMcheck
or require
. They indicate that a bug and that the app is in a bad state. Trying to keep going when you don't know why you are in an unexpected state is dangerous.
Also if you use those a lot, and then annotate all the functions that call them with @Throws
you will have an API that is very hard to use from iOS, since you are forced to handle exceptions that are bugs and should not happen.