Practice in using try-catch-finally
<p>Which one is a good combination with UI layers try-catch and a good practice in n-tier application and why?</p>

<p>1.</p>

<pre><code> try
    {
     //Statements
    }
    catch
    {
      throw
    }
    finally
    {
     //cleanup codes
    }
</code></pre>

<p>OR</p>

<p>2.</p>

<pre><code> try
    {
      // statements
    }
    catch(Exception ex)
    {
    }
    finally
    {
     // clean up
    }
</code></pre>

<p>and in UI layer</p>

<pre><code>try{
}
catch(Exception ex)
{
 Log(ex);
}
finally
{
  //clean up
}
</code></pre>
