title: C# Returning something from exception handle
body: <p>I have the following code in a class of mine. The purpose of this class is to get the balance from a web server. Just in case something goes wrong with getting the balance. I will handle a exception. However, all this is easy to do. But I am left wondering what do I return in my catch statement. </p>
  
  <p>Most of the examples I looked at just write to the console using: </p>
  
  <pre><code>Console.WriteLine(ex.Message);
  </code></pre>
  
  <p>That is all very well. But in a real application what do most developers do?</p>
  
  <pre><code> //Download only when the webclient is not busy.
          if (!wc.IsBusy)
          { 
              // Sleep for 1/2 second to give the server time to update the balance.
              System.Threading.Thread.Sleep(500);
  
              try
              {
                  // Download the current balance.
                  wc.DownloadStringAsync(new Uri(strURL));
              }
              catch (WebException ex)
              {
                  Console.Write("GetBalance(): " + ex.Message);
              }
          }
          else
          {
              Console.Write("Busy please try again");
          }
  </code></pre>
  
  <p>My function at the moment returns void. And I am just wondering what else I would return if the webclient is busy?</p>
  
  <p>Many thanks for any advice,</p>