title: How to find out what the exact Throwable class is?
body: <p>I have a <code>try/catch</code> block where I catch all <code>Throwable</code> exceptions.</p>
  
  <pre><code>try {
      ...
  } catch (Throwable $ex) {
      ...
  }
  </code></pre>
  
  <p>How do I, at runtime, figure out what the exact class of the throw exception is? I want to add multiple <code>catch</code> blocks to handle different exceptions differently, but am unable to find out the types of exceptions that are thrown.</p>