1 | <?php |
||
14 | class YConnectIdentityProviderException extends IdentityProviderException |
||
15 | { |
||
16 | /** |
||
17 | * Creates client exception from response. |
||
18 | * |
||
19 | * @param ResponseInterface $response |
||
20 | * @param array $data |
||
21 | * |
||
22 | * @return YConnectIdentityProviderException |
||
23 | */ |
||
24 | public static function clientException(ResponseInterface $response, array $data) |
||
31 | |||
32 | /** |
||
33 | * Creates oauth exception from response. |
||
34 | * |
||
35 | * @param ResponseInterface $response |
||
36 | * @param array $data |
||
37 | * |
||
38 | * @return YConnectIdentityProviderException |
||
39 | */ |
||
40 | public static function oauthException(ResponseInterface $response, array $data) |
||
47 | |||
48 | /** |
||
49 | * Creates identity exception from response. |
||
50 | * |
||
51 | * @param ResponseInterface $response |
||
52 | * @param null $message |
||
53 | * |
||
54 | * @return static |
||
55 | */ |
||
56 | protected static function fromResponse(ResponseInterface $response, $message = null) |
||
60 | } |