httpResponse->getCode() != 200) { $this->isOk = false; $errorData = json_decode($this->httpResponse->getContents(), true); if (isset($errorData['error']) && isset($errorData['error_description'])) { $this->message = $errorData['error'].': '.$errorData['error_description']; } } $rawData = json_decode($this->httpResponse->getContents(), true); if (null === $rawData) { throw new RakutenRws_Exception(); } $this->data = $rawData; } }