| 1 | <?php |
||
| 7 | class CouldNotSendNotification extends \Exception |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var \Pushok\ApnsResponseInterface |
||
| 11 | */ |
||
| 12 | protected $response; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * Create an instance of exception. |
||
| 16 | * |
||
| 17 | * @param string $message |
||
| 18 | * @param int $errorCode |
||
| 19 | * @return static |
||
| 20 | */ |
||
| 21 | public static function make($message, $errorCode) |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Attach the response. |
||
| 28 | * |
||
| 29 | * @param \Pushok\ApnsResponseInterface $response |
||
| 30 | * @return $this |
||
| 31 | */ |
||
| 32 | public function withResponse(ApnsResponseInterface $response) |
||
| 38 | |||
| 39 | /** |
||
| 40 | * Get a response. |
||
| 41 | * |
||
| 42 | * @return \Pushok\ApnsResponseInterface |
||
| 43 | */ |
||
| 44 | public function getResponse() |
||
| 48 | } |
||
| 49 |