| 1 |
<?php |
| 2 |
|
| 3 |
namespace SyncBasalam\Jobs\Exceptions; |
| 4 |
|
| 5 |
defined('ABSPATH') || exit; |
| 6 |
|
| 7 |
/** |
| 8 |
* A locally stored Basalam variation id no longer exists for the product. |
| 9 |
* |
| 10 |
* Keeping this distinct from a general 404 lets the product update service |
| 11 |
* rebuild only the variation mapping without disconnecting the product. |
| 12 |
*/ |
| 13 |
class StaleVariationException extends NonRetryableException |
| 14 |
{ |
| 15 |
private $basalamProductId; |
| 16 |
private $basalamVariationId; |
| 17 |
|
| 18 |
public function __construct($basalamProductId, $basalamVariationId, \Throwable $previous) |
| 19 |
{ |
| 20 |
$this->basalamProductId = $basalamProductId; |
| 21 |
$this->basalamVariationId = $basalamVariationId; |
| 22 |
|
| 23 |
parent::__construct( |
| 24 |
'شناسه � |
| 25 |
تغیر ذخیرهشده در باسلا� |
| 26 |
دیگر � |
| 27 |
عتبر نیست.', |
| 28 |
404, |
| 29 |
$previous |
| 30 |
); |
| 31 |
} |
| 32 |
|
| 33 |
public function getBasalamProductId() |
| 34 |
{ |
| 35 |
return $this->basalamProductId; |
| 36 |
} |
| 37 |
|
| 38 |
public function getBasalamVariationId() |
| 39 |
{ |
| 40 |
return $this->basalamVariationId; |
| 41 |
} |
| 42 |
} |
| 43 |
|