title: Identifying Exception Type in a handler Catch Block
body: <p>I have created custom exception class</p>
  
  <pre><code>public class Web2PDFException : Exception
  {
      public Web2PDFException(string message, Exception innerException)
          : base(message, innerException) { ... }
  }
  </code></pre>
  
  <p>In my application how can I find out if it is my custom exception or not? </p>
  
  <pre><code>try {  ...  }
  
  catch (Exception err)
  {
  //Find exception type here
  }
  </code></pre>