ok

Mini Shell

Direktori : /home2/selectio/www/innerstore/vendor/spatie/browsershot/src/Exceptions/
Upload File :
Current File : /home2/selectio/www/innerstore/vendor/spatie/browsershot/src/Exceptions/CouldNotTakeBrowsershot.php

<?php

namespace Spatie\Browsershot\Exceptions;

use Exception;

class CouldNotTakeBrowsershot extends Exception
{
    public static function chromeOutputEmpty(string $screenShotPath, string $output, array $command = [])
    {
        $command = json_encode($command);

        $message = <<<CONSOLE
            For some reason Chrome did not write a file at `{$screenShotPath}`.
            Command
            =======
            {$command}
            Output
            ======
            {$output}
            CONSOLE;

        return new static($message);
    }

    public static function outputFileDidNotHaveAnExtension(string $path)
    {
        return new static("The given path `{$path}` did not contain an extension. Please append an extension.");
    }
}

Zerion Mini Shell 1.0