| 1 |
<?php |
| 2 |
|
| 3 |
namespace Templately\Core\Importer\Exception; |
| 4 |
|
| 5 |
class SkippableErrorException extends ImporterException { |
| 6 |
protected $item_key; |
| 7 |
protected $item_type; |
| 8 |
|
| 9 |
public function __construct($message, $item_key = null, $item_type = null, $code = 0, ?\Throwable $previous = null) { |
| 10 |
parent::__construct($message, $code, $previous); |
| 11 |
$this->item_key = $item_key; |
| 12 |
$this->item_type = $item_type; |
| 13 |
} |
| 14 |
|
| 15 |
public function getItemKey() { |
| 16 |
return $this->item_key; |
| 17 |
} |
| 18 |
|
| 19 |
public function getItemType() { |
| 20 |
return $this->item_type; |
| 21 |
} |
| 22 |
} |
| 23 |
|