title: Wrong parameters for Exception([string $exception [, long $code ]])
body: <p>Have been staring to this exception for while and have no clue whats going wrong.</p>
  
  <blockquote>
    <p>Fatal Error: Wrong parameters for <code>Exception([string $exception [, long $code ]])</code></p>
  </blockquote>
  
  <p>It seems pretty straight forward, the Exception expects a message and a optional code, though for some reason the code won't agree with me. Even when I drop the last parameter <code>$e</code> (for keeping the stacktrace), this same error pops up. </p>
  
  <pre><code>try {
      // ...
  } catch (Exception $e) {
      throw new Exception('Client cannot be created', 0, $e);
  }
  </code></pre>
  
  <p>Only when i omit both the code (<code>0</code>) and the previous exception (<code>$e</code>), the error is thrown correctly.</p>
  
  <pre><code>try {
      // ...
  } catch (Exception $e) {
      throw new Exception('Client cannot be created');
  }
  </code></pre>