Наследование: extends Exceptio\Exception
 /**
  * Get the url for the profile of a media item.
  *
  * @return string
  *
  * @throws \Spatie\MediaLibrary\Exceptions\UrlCannotBeDetermined
  */
 public function getUrl() : string
 {
     if (!string($this->getStoragePath())->startsWith(public_path())) {
         throw UrlCannotBeDetermined::mediaNotPubliclyAvailable($this->getStoragePath(), public_path());
     }
     $url = $this->getBaseMediaDirectory() . '/' . $this->getPathRelativeToRoot();
     $url = $this->makeCompatibleForNonUnixHosts($url);
     $url = $this->rawUrlEncodeFilename($url);
     return $url;
 }