| 1 | <?php |
||
| 19 | class DiscordIdentityProviderException extends IdentityProviderException |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * Creates client exception from response |
||
| 23 | * |
||
| 24 | * @param ResponseInterface $response |
||
| 25 | * @param array $data Parsed response data |
||
| 26 | * |
||
| 27 | * @return IdentityProviderException |
||
| 28 | */ |
||
| 29 | 3 | public static function clientException(ResponseInterface $response, $data) |
|
| 36 | |||
| 37 | /** |
||
| 38 | * Creates identity exception from response |
||
| 39 | * |
||
| 40 | * @param ResponseInterface $response |
||
| 41 | * @param string $message |
||
| 42 | * |
||
| 43 | * @return IdentityProviderException |
||
| 44 | */ |
||
| 45 | 3 | protected static function fromResponse(ResponseInterface $response, $message = null) |
|
| 49 | } |
||
| 50 |