protected function createException(RequestInterface $request, Response $response, array $parts)
	{
		$message = 'Status Code: ' . $response->getStatusCode() . PHP_EOL
			. 'Kinvey Request ID: ' . $parts['request_id'] . PHP_EOL
			. 'Kinvey Exception Type: ' . $parts['type'] . PHP_EOL
			. 'Kinvey Error Message: ' . $parts['description'] . PHP_EOL
			. 'Kinvey Debug: ' . $parts['debug'];

		$class = new KinveyResponseException($message);
		$class->setExceptionType($parts['type']);
		$class->setResponse($response);
		$class->setRequest($request);
		$class->setRequestId($parts['request_id']);
		$class->setDebug($parts['debug']);
		return $class;
	}