ok
Direktori : /home2/selectio/www/3-idiots/vendor/spatie/browsershot/src/Exceptions/ |
Current File : /home2/selectio/www/3-idiots/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."); } }