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