title: default exception handling
body: <p>What im trying to do within my project is every time i raise a </p>
  
  <pre><code>try
        ...
  catch ex as exception
        ...some logging code
  end try
  </code></pre>
  
  <p>Have it so that there is a class predefined somewhere to execute some code when a catch is triggered. not sure if it's possible but it would make my life easier and alot less duplication in my code.</p>
  
  <p>something like</p>
  
  <pre><code>public sub NullReferenceException()
         runLogginfunction()
  end sub
  </code></pre>
  
  <p>Thanks</p>