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