mirror of
https://github.com/coollabsio/coolify.git
synced 2026-11-06 13:10:37 -04:00
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: peaklabs-dev <122374094+peaklabs-dev@users.noreply.github.com> Co-authored-by: Aditya Tripathi <aditya@climactic.co>
21 lines
496 B
PHP
21 lines
496 B
PHP
<?php
|
|
|
|
namespace App\Services\ImageScan;
|
|
|
|
use App\Enums\ImageScanErrorCode;
|
|
use RuntimeException;
|
|
|
|
/**
|
|
* Stops a scan with an error code. ScanImage catches it and stores the code on the scan row.
|
|
*/
|
|
final class ScanFailed extends RuntimeException
|
|
{
|
|
/**
|
|
* @param array<string, int|string> $context
|
|
*/
|
|
public function __construct(public readonly ImageScanErrorCode $errorCode, public readonly array $context = [])
|
|
{
|
|
parent::__construct($errorCode->value);
|
|
}
|
|
}
|