| 1 |
<?php |
| 2 |
|
| 3 |
namespace Spatie\Image\Exceptions; |
| 4 |
|
| 5 |
use Exception; |
| 6 |
|
| 7 |
class InvalidTemporaryDirectory extends Exception |
| 8 |
{ |
| 9 |
public static function temporaryDirectoryNotCreatable(string $directory): self |
| 10 |
{ |
| 11 |
return new self("the temporary directory `{$directory}` does not exist and can not be created"); |
| 12 |
} |
| 13 |
|
| 14 |
public static function temporaryDirectoryNotWritable(string $directory): self |
| 15 |
{ |
| 16 |
return new self("the temporary directory `{$directory}` does exist but is not writable"); |
| 17 |
} |
| 18 |
} |
| 19 |
|