/**
  * @param array $response_data The response from the Graph API
  * @param int $status_code
  */
 public function __construct(array $response_data, $status_code)
 {
     $this->statusCode = $status_code;
     $error_data = static::getErrorData($response_data);
     parent::__construct($error_data['message'], $error_data['code']);
     $this->errorSubcode = $error_data['error_subcode'];
     $this->errorUserTitle = $error_data['error_user_title'];
     $this->errorUserMessage = $error_data['error_user_msg'];
     $this->errorBlameFieldSpecs = $error_data['error_blame_field_specs'];
 }
 /**
  * @param ResponseInterface $response
  */
 public function __construct(ResponseInterface $response)
 {
     $this->response = $response;
     $error_data = static::getErrorData($response->getContent());
     parent::__construct($error_data['message'], $error_data['code']);
     $this->errorSubcode = $error_data['error_subcode'];
     $this->errorUserTitle = $error_data['error_user_title'];
     $this->errorUserMessage = $error_data['error_user_msg'];
     $this->errorBlameFieldSpecs = $error_data['error_blame_field_specs'];
 }