title: Conventions for exceptions or error codes
body: <p>Yesterday I was having a heated debate with a coworker on what would be the preferred error reporting method. Mainly we were discussing the usage of exceptions or error codes for reporting errors between application layers or modules.</p>
  
  <p><strong>What rules do you use to decide if you throw exceptions or return error codes for error reporting?</strong></p>