src/CacheException.php
public static function badFileName(
        string $fileName, 
        \Exception $previous = null
    ): self {
        return new self(
            "bad file name: {$fileName}",
            self::BAD_FILE_NAME,
            $previous
        );
    }
public static function badFileName(
        string $fileName, 
        \Exception $previous = null
    ): self {
        return new self(
            "bad file name: {$fileName}",
            self::BAD_FILE_NAME,
            $previous
        );
    }
public static function badFileName ( string $ fileName , \ Exception $ previous = null ) : self { return new self ( "bad file name: {$fileName}" , self :: BAD_FILE_NAME , $ previous ) ; }
This method creates an exception if the given file-name contains
invalid symbols.

@param string $fileName
The file-name
@param \Exception|null $previous
Previous exception
@return \Gustav\Cache\CacheException
The new exception
This method creates an exception if the given file - name contains invalid symbols .