title: error handling with NSURLConnection sendSynchronousRequest
body: <p>how can i do better error handling with NSURLConnection sendSynchronousRequest? is there any way i can implement</p>
  
  <pre><code>- (void)connection:(NSURLConnection *)aConn didFailWithError:(NSError *)error
  </code></pre>
  
  <p>i have a nsoperation queue which is getting data in background thats why i have sync request.
  and if i have to implement async request then how can i wait for request to get complete. because that method can't proceed without data.</p>