24 lines
481 B
PHP
24 lines
481 B
PHP
<?php
|
||
|
||
namespace App\Serp\Operations;
|
||
|
||
use App\Serp\Exceptions\PermanentProviderException;
|
||
|
||
class OperationBlockedException extends PermanentProviderException
|
||
{
|
||
public function __construct(private readonly string $reason)
|
||
{
|
||
parent::__construct($reason);
|
||
}
|
||
|
||
public function safeCode(): string
|
||
{
|
||
return $this->reason;
|
||
}
|
||
|
||
public function safeMessage(): string
|
||
{
|
||
return 'SERP kontrol hizmeti şu anda kullanılamıyor.';
|
||
}
|
||
}
|