title: Exception Thrown In Parent Class Not Caught In Child Class
body: <p>This error is happening when using the Facebook PHP SDK but I actually think it's a general error.</p>
  
  <p>When I run this code, everything works fine and the exception is caught:</p>
  
  <pre><code>$facebook = new Facebook('appId'=&gt;APP_ID,'secret'=&gt;APP_SECRET);
  try {
      $user_profile = $facebook-&gt;api('/me','GET');
      echo "Name: " . $user_profile['name'];
  } catch(FacebookApiException $e) {
      $login_url = $facebook-&gt;getLoginUrl(); 
      echo 'Please &lt;a href="' . $login_url . '"&gt;login.&lt;/a&gt;';
  }
  </code></pre>
  
  <p>But when I run this code:</p>
  
  <pre><code>$facebook = new Facebook_Extended('appId'=&gt;APP_ID,'secret'=&gt;APP_SECRET);
  $facebook-&gt;api_extended();
  </code></pre>
  
  <p>With the extended class's method looking like this:</p>
  
  <pre><code>// Overrides parent::api()
  public function api() {
      try {
          $user_profile = parent::api('/me','GET');
          echo "Name: " . $user_profile['name'];
      } catch(FacebookApiException $e) {
          $login_url = $this-&gt;getLoginUrl(); 
          echo 'Please &lt;a href="' . $login_url . '"&gt;login.&lt;/a&gt;';
      } 
  }
  </code></pre>
  
  <p>I get an "Uncaught OAuthException" error.</p>
  
  <p>Any ideas why the exception is not able to be caught in the child class?</p>