| 1 | <?php |
||
| 8 | class XsollaAPIException extends XsollaException |
||
| 9 | { |
||
| 10 | protected static $exceptions = array( |
||
| 11 | 422 => '\Xsolla\SDK\Exception\API\UnprocessableEntityException', |
||
| 12 | 403 => '\Xsolla\SDK\Exception\API\AccessDeniedException', |
||
| 13 | ); |
||
| 14 | |||
| 15 | protected static $messageTemplate = |
||
| 16 | <<<EOF |
||
| 17 | Xsolla API Error Response: |
||
| 18 | |||
| 19 | Previous Exception: |
||
| 20 | =================== |
||
| 21 | %s |
||
| 22 | |||
| 23 | Request: |
||
| 24 | =================== |
||
| 25 | %s |
||
| 26 | |||
| 27 | Response: |
||
| 28 | =================== |
||
| 29 | %s |
||
| 30 | EOF; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @param BadResponseException $previous |
||
| 34 | * @return XsollaAPIException |
||
| 35 | */ |
||
| 36 | 1 | public static function fromBadResponse(BadResponseException $previous) |
|
| 51 | } |
||
| 52 |