3 ms·
Objective-C has no exceptions.
by saagarjha 6y ago
Objective-C has no exceptions.
- grzm 6y agoWhaddya mean? @try { // do something that might throw an exception } @catch (NSException *exception) { // deal with the exception } @finally { // optional block of clean-up code // executed whether or not an exception occurred } https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/ProgrammingWithObjectiveC/ErrorHandling/ErrorHandling.html#//apple_ref/doc/uid/TP40011210-CH9-SW3 https://developer.apple.com/library/archive/documentation/Co... (I'll see myself out. For at least two reasons.)