You are here

public function fb_GraphException::__construct in Drupal for Facebook 7.4

File

./fb.module, line 1847

Class

fb_GraphException
Define a custom exception class to keep track of both the HTTP response code and the facebook error code.

Code

public function __construct($message, $fb_code, $http_code, Exception $previous = null) {
  $this->http_code = $http_code;

  // http response code
  $this->fb_code = $fb_code;

  // original error code from facebook.
  // make sure everything is assigned properly
  parent::__construct($message, $fb_code, $previous);
}