| Total Complexity | 3 |
| Total Lines | 41 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | class RetryLogicException extends Exception |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @var Exception |
||
| 16 | */ |
||
| 17 | protected $original_error; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @var Replay |
||
| 21 | */ |
||
| 22 | protected $replay; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * RetryLogicException constructor. |
||
| 26 | * |
||
| 27 | * @param Replay $replay |
||
| 28 | * @param Exception $original_error |
||
| 29 | * @param string $message |
||
| 30 | */ |
||
| 31 | public function __construct(Replay $replay, Exception $original_error, $message = "") |
||
| 32 | { |
||
| 33 | parent::__construct($message); |
||
| 34 | $this->original_error = $original_error; |
||
| 35 | $this->replay = $replay; |
||
| 36 | $this->message = $message; |
||
| 37 | } |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @return Exception |
||
| 41 | */ |
||
| 42 | public function getOriginalError() |
||
| 45 | } |
||
| 46 | |||
| 47 | /** |
||
| 48 | * @return Replay |
||
| 49 | */ |
||
| 50 | public function getReplay() |
||
| 53 | } |
||
| 54 | } |
||
| 55 |