title: Why use exception instead of returning error code
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/253314/exceptions-or-error-codes">Exceptions or error codes</a>  </p>
  </blockquote>
  
  
  
  <p>Hi,</p>
  
  <p>I am looking for some guidelines on when to use return values v/s exceptions.</p>
  
  <p>Many thanks in advance.  </p>