title: Adding global MySQL exception handler
body: <p>In my dll, I have a global error handler to catch the rest of the errors. The handler is added in the Load-event:</p>
  
  <pre><code> AddHandler currentDomain.UnhandledException, AddressOf MYExnHandler
  </code></pre>
  
  <p>And the sub looks like this:</p>
  
  <pre><code>Private Sub MYExnHandler(ByVal sender As Object, ByVal e As UnhandledExceptionEventArgs)
      Dim EX As Exception
      EX = DirectCast(e.ExceptionObject, Exception)
      MsgBox(EX.ToString())
  End Sub
  </code></pre>
  
  <p>This works very fine. Is there a way to use a global error handler for MySQL-expections in the same way? I want to catch especially the MySQLCommand in the exception.</p>