title: C# Throw exception in server call back method
body: <p>I have a method in my program which is a server call back look like this:</p>
  
  <pre><code>        private void DeserializerCallback(IAsyncResult aysncResult)
      {
          HttpWebRequest request = (HttpWebRequest)aysncResult.AsyncState;
          HttpWebResponse response;
          try
          {
              response = (HttpWebResponse)request.EndGetResponse(aysncResult);
          }
          catch(WebException e)
          {
              VenueMapException venueMapException = new MyException(MyException.ExceptionType.BadResponseException, e);
              throw venueMapException;
          }
  
          Stream responseStream = response.GetResponseStream();
          this.DeserializeStream(responseStream);
  
      }
  </code></pre>
  
  <p>This method is called after I do this line:</p>
  
  <pre><code>this.MyHttpRequest.BeginGetResponse(new AsyncCallback(this.DeserializerCallback), this.MyHttpRequest);
  </code></pre>
  
  <p>In the call back method, I throw a exception that defined by myself. Now I want to catch this exception as far from this code as possible, but I am not sure where will the exception go if I do not catch it in this method. <br>Can someone give some suggestion? Thank you</p>