title: Throwing custom exception from completionhandler/block crashes the app in objective c
body: <p>I am trying to throw exception from my custom framework. It works well if it is thrown outside block.
  But app crashes on [exception raise] if its within block.</p>
  
  <p>How to create a completion handler/block with throws in objective C.</p>
  
  <pre><code>typedef void (^ServerResponse) (id responseObject, BOOL requestSuccess, NSError* error);
  
  
  - (void)getData:(NSUInteger*)id response:(ServerResponse)response
  {
      NSString* url = [NSString stringWithFormat:@"%@data/%@“,ServerUrl,[NSString stringWithFormat:@"%ld",(long)vid]];
  …………..
  ………
  if(statuscode == 200 &amp;&amp; [response objectForKey:@“something”])
  {
                      NSException* exception = [NSException exceptionWithName:@“Name” reason:@“Data id" userInfo:nil];
                      [exception raise];
  
  }
  }
  </code></pre>