File "InvalidBackupFile.php"

Full Path: /home/pulsehostuk9/public_html/invoicer.pulsehost.co.uk/vendor/spatie/laravel-backup/src/Exceptions/InvalidBackupFile.php
File size: 520 bytes
MIME-type: text/x-php
Charset: utf-8

<?php

namespace Spatie\Backup\Exceptions;

use Exception;
use Spatie\Backup\BackupDestination\Backup;

class InvalidBackupFile extends Exception
{
    public static function writeError(string $backupName): self
    {
        return new static("There has been an error writing file for the backup named `{$backupName}`.");
    }

    public static function readError(Backup $backup): self
    {
        $path = $backup->path();

        return new static("There has been an error reading the backup `{$path}`");
    }
}