Objective-C Exception Handling
@try{
if(/*error*/){
@throw exception;
}
}
@catch(NSException* exception){
[self handleException:exception];
}
@finally{
[self cleanup];
}
Details are here;
https://developer.apple.com/library/ios/documentation/Cocoa/Conceptual/Exceptions/Tasks/HandlingExceptions.html#//apple_ref/doc/uid/20000059-SW8
Hiç yorum yok:
Yorum Gönder