Наследование: extends Exceptio\Exception
 /**
  *  Get a conversion by it's name.
  *
  * @param string $name
  *
  * @return mixed
  *
  * @throws \Spatie\MediaLibrary\Exceptions\InvalidConversion
  */
 public function getByName(string $name)
 {
     foreach ($this->items as $conversion) {
         if ($conversion->getName() === $name) {
             return $conversion;
         }
     }
     throw InvalidConversion::unknownName($name);
 }