Esempio n. 1
0
 /**
  * {@inheritDoc}
  */
 public function setMetadata($key, $content)
 {
     $this->init();
     try {
         $this->blobProxy->setBlobMetadata($this->containerName, $key, $content);
     } catch (ServiceException $e) {
         $errorCode = $this->getErrorCodeFromServiceException($e);
         throw new \RuntimeException(sprintf('Failed to set metadata for blob "%s" in container "%s": %s (%s).', $key, $this->containerName, $e->getErrorText(), $errorCode), $e->getCode());
     }
 }