title: Declare a method that always throws an exception?
body: <p>I have a method like:</p>
  <pre><code>int f() {
    try {
      int i = process();
      return i;
    } catch(Exception ex) {
      ThrowSpecificFault(ex);
    }
  }
  </code></pre>
  <p>This produces a compiler error, &quot;not all code paths return a value&quot;.  But in my case ThrowSpecificFault() will always throw (the appropriate) exception.  So I am forced to a put a return value at the end but this is ugly.</p>
  <p>The purpose of this pattern in the first place is because &quot;process()&quot; is a call to an external web service but need to translate a variety of different exceptions to match a client's expected interface (~facade pattern I suppose).</p>
  <p>Any cleaner way to do this?</p>