private function createRuntimeException($type, $path, $action, AdapterInterface $adapter) { return new \RuntimeException(sprintf('%s %s could not be %s on remote host (backend error: %s)', $type, $path, $action, $this->getLastError($adapter))); }