| 1 | <?php |
||
| 5 | class PaddleApiException extends \Exception |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * Creates an instance for an unsuccesful request |
||
| 9 | * |
||
| 10 | * @param int $status |
||
| 11 | * @return $this |
||
| 12 | */ |
||
| 13 | public static function unsuccessfulStatus(int $status) |
||
| 17 | |||
| 18 | /** |
||
| 19 | * Creates an instance for a response that contains an error |
||
| 20 | * |
||
| 21 | * @param array $response |
||
| 22 | * @return $this |
||
| 23 | */ |
||
| 24 | public static function fromResponse(array $response) |
||
| 32 | } |
||
| 33 |