original_string: public static function error($json)
      {
          $fields = Deserialize::_fromJson($json);
  
          $result = new Api\Error();
          $result->setCode($fields->code);
          $result->setText($fields->text);
  
          return $result;
      }
code: public static function error($json)
      {
          $fields = Deserialize::_fromJson($json);
  
          $result = new Api\Error();
          $result->setCode($fields->code);
          $result->setText($fields->text);
  
          return $result;
      }
code_tokens: public static function error ( $ json ) { $ fields = Deserialize :: _fromJson ( $ json ) ; $ result = new Api \ Error ( ) ; $ result -> setCode ( $ fields -> code ) ; $ result -> setText ( $ fields -> text ) ; return $ result ; }
docstring: Reads a JSON blob containing an error response.
  
  @param string $json a JSON formatted text
  
  @return Api\Error the decoded error
docstring_tokens: Reads a JSON blob containing an error response .