title: How to catch trait not found error PHP 7
body: <p>As of PHP 7 it's possible to catch <code>Fatal Errors</code> by catching either <code>Error</code> class or <code>Throwable</code> interface, but for some reason I can't manage to do that when "Fatal Error: trait not found" is triggered.</p>
  
  <pre><code>try {
      class Cars {
          use Price;
      }
  } catch (Error $e) {
      echo $e-&gt;getMessage(); // Output : Fatal error: Trait 'Price' not found in [..] on line [..]
  } 
  </code></pre>
  
  <p>The error not caught!! So I came up with a solution</p>
  
  <pre><code>try {
      if (trait_exists('Price')) {
          class Cars{
              use Price;
          }
      } else {
          throw new Error('Trait Price not found');
      }
  
  } catch (Error $e) {
      echo $e-&gt;getMessage(); // Output : Trait Price not found
  }
  </code></pre>
  
  <p>Why that <code>Fatal Error</code> in the first example wasn't caught?</p>
  
  <p>Is my approach in the second example is the only way to do it?</p>