original_string: protected function throwResponseException()
      {
          if (null === $this->data) {
              throw new ResponseException('Undecodable response was returned.');
          }
  
          if (isset($this->data['error'], $this->data['message'])) {
              throw new ResponseException($this->data['message'], $this->data['error']);
          }
  
          throw new ResponseException('Unknown error');
      }
code: protected function throwResponseException()
      {
          if (null === $this->data) {
              throw new ResponseException('Undecodable response was returned.');
          }
  
          if (isset($this->data['error'], $this->data['message'])) {
              throw new ResponseException($this->data['message'], $this->data['error']);
          }
  
          throw new ResponseException('Unknown error');
      }
code_tokens: protected function throwResponseException ( ) { if ( null === $ this -> data ) { throw new ResponseException ( 'Undecodable response was returned.' ) ; } if ( isset ( $ this -> data [ 'error' ] , $ this -> data [ 'message' ] ) ) { throw new ResponseException ( $ this -> data [ 'message' ] , $ this -> data [ 'error' ] ) ; } throw new ResponseException ( 'Unknown error' ) ; }
docstring: Throw an exception detailing what went wrong with this request.
  
  @throws ResponseException
docstring_tokens: Throw an exception detailing what went wrong with this request .