3 ms·
Yes, but 1. it’s hard to inject that as the crash happens very early at launch and 2. Objective-C exceptions of this type are not intended to be caught.
by saagarjha 6y ago
Yes, but 1. it’s hard to inject that as the crash happens very early at launch and 2. Objective-C exceptions of this type are not intended to be caught.
- robterrell 6y agoThat's not strictly true, and anyway it's different for the app developer versus a library provider. If you're making a 3rd party SDK that can throw, you need to make it can catch those throws.
- saagarjha 6y agoNSInvalidArgumentException is not intended to be caught. You can, of course, but receiving one indicates a serious run-time error.