Files
michaelschiemer/src/Framework/Filesystem/Exceptions/FileCopyException.php
Michael Schiemer 55a330b223 Enable Discovery debug logging for production troubleshooting
- Add DISCOVERY_LOG_LEVEL=debug
- Add DISCOVERY_SHOW_PROGRESS=true
- Temporary changes for debugging InitializerProcessor fixes on production
2025-08-11 20:13:26 +02:00

30 lines
794 B
PHP

<?php
declare(strict_types=1);
namespace App\Framework\Filesystem\Exceptions;
use App\Framework\Exception\ExceptionContext;
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'.",
context: ExceptionContext::forOperation('file_copy', 'Filesystem')
->withData([
'source' => $source,
'destination' => $destination,
]),
code: $code,
previous: $previous
);
}
}