| 1 |
<?php |
| 2 |
|
| 3 |
namespace WPSynchro\Database\Exception; |
| 4 |
|
| 5 |
class SerializedStringException extends \Exception |
| 6 |
{ |
| 7 |
public $data = ''; |
| 8 |
|
| 9 |
public function __construct(string $message, int $code = 0, string $data = '', \Throwable|null $previous = null) |
| 10 |
{ |
| 11 |
$this->data = $data; |
| 12 |
|
| 13 |
// make sure everything is assigned properly |
| 14 |
parent::__construct($message, $code, $previous); |
| 15 |
} |
| 16 |
} |
| 17 |
|