\InvalidArgumentException If the cache pool with the given name does not exist
public function getPool(string $name) : CacheItemPoolInterface { if (!$this->hasPool($name)) { throw new \InvalidArgumentException(\sprintf('Cache pool not found: "%s".', $name)); } return $this->pools[$name]; }