| 1 | <?php |
||
| 5 | class RequestFailed extends ClientException |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * @var string |
||
| 9 | */ |
||
| 10 | private $errorCode; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * RequestFailed constructor. |
||
| 14 | * |
||
| 15 | * @param string $message |
||
| 16 | * @param string $errorCode |
||
| 17 | * @param \Exception|null $previous |
||
| 18 | */ |
||
| 19 | public function __construct($message, $errorCode = null, \Exception $previous = null) |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Returns the error code string. |
||
| 30 | */ |
||
| 31 | public function getErrorCode() |
||
| 35 | } |
||
| 36 |