title: How to pass exception message from DLL to main application
body: <p>Let's say that I have a class in my dll file:</p>
  
  <pre><code>public ClassInDllFile()
  {
      String str = "";
      try
      {
          str = someClassMethod();
      }
      catch (Exception e) // or more precised exception type
      {
          // some code
      }
  }
  </code></pre>
  
  <p>I don't want to put exception message in MessageBox from Dll level (it requires additional references), but I would to pass it to some (on example) WinForm application.</p>