chore: complete update
This commit is contained in:
27
src/Framework/Filesystem/Exceptions/FileCopyException.php
Normal file
27
src/Framework/Filesystem/Exceptions/FileCopyException.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Framework\Filesystem\Exceptions;
|
||||
|
||||
use App\Framework\Exception\FrameworkException;
|
||||
|
||||
final class FileCopyException extends FrameworkException
|
||||
{
|
||||
public function __construct(
|
||||
string $source,
|
||||
string $destination,
|
||||
int $code = 0,
|
||||
?\Throwable $previous = null
|
||||
) {
|
||||
parent::__construct(
|
||||
message: "Fehler beim Kopieren von '$source' nach '$destination'.",
|
||||
code: $code,
|
||||
previous: $previous,
|
||||
context: [
|
||||
'source' => $source,
|
||||
'destination' => $destination
|
||||
]
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user