title: Why does `catch (Exception $e)` not handle this `ErrorException`?
body: <p>I get the <code>ErrorException</code> on the function call bellow. How can this be? Why is it not caught?</p>
  
  <pre><code>try {
      static::$function_name($url);
  }
  catch (Exception $e) {}
  </code></pre>
  
  <p>The underlying reason for the error is a <code>file_put_contents</code> call. I'm using the Laravel 4 framework, if it makes any difference.</p>