Is there a way to catch exceptions in block code?
I got the following code:
void(^callback(int) = ^(int respond){ [self DoSomethingWithRespond:respond];
Callback methods are called from another thread. If the answer is 400, the DoSomethingWithRespond
method will throw an exception.
source share