original_string: protected function buildErrorData()
      {
          if (is_null($this->errorCode)) {
              return null;
          }
  
          $data = [
              'code' => $this->errorCode,
              'message' => $this->message ?: $this->resolveMessage()
          ];
  
          return array_merge($data, $this->data);
      }
code: protected function buildErrorData()
      {
          if (is_null($this->errorCode)) {
              return null;
          }
  
          $data = [
              'code' => $this->errorCode,
              'message' => $this->message ?: $this->resolveMessage()
          ];
  
          return array_merge($data, $this->data);
      }
code_tokens: protected function buildErrorData ( ) { if ( is_null ( $ this -> errorCode ) ) { return null ; } $ data = [ 'code' => $ this -> errorCode , 'message' => $ this -> message ? : $ this -> resolveMessage ( ) ] ; return array_merge ( $ data , $ this -> data ) ; }
docstring: Build the error object of the serialized response data.
  
  @return array|null
docstring_tokens: Build the error object of the serialized response data .