public static function invalidFileName(
        string $fileName,
        \Exception $previous = null
    ): self {
        return new self(
            "invalid log file \"{$fileName}\"",
            self::INVALID_FILENAME,
            $previous
        );
    }