title: controlling if exceptions are swallowed by a static boolean
body: <p>So we are a few guys developing this product that is communicating with a really unstable server. It often returns very strange and corrupt data. During testing we want the resulting crashes to be loud, so we discover them. But every other day we need to demonstrate our product for a potential customer. To the customer the errors will go undiscovered if we just swallow them. I am thinking about implementing something like this around all server communication to quickly switch between swallowing exceptions and crashing:</p>
  
  <pre><code>try {
      apiCall();
  } catch (Exception e) {
      if(!SWALLOW_EXCEPTION) {
          throw e;
      }
  }
  </code></pre>
  
  <p>Is this an awesome idea, or can it be done in a better way? </p>