| 1 | <?php |
||
| 7 | class GithubIdentityProviderException extends IdentityProviderException |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * Creates client exception from response. |
||
| 11 | * |
||
| 12 | * @param ResponseInterface $response |
||
| 13 | * @param string $data Parsed response data |
||
| 14 | * |
||
| 15 | * @return IdentityProviderException |
||
| 16 | */ |
||
| 17 | 3 | public static function clientException(ResponseInterface $response, $data) |
|
| 24 | |||
| 25 | /** |
||
| 26 | * Creates oauth exception from response. |
||
| 27 | * |
||
| 28 | * @param ResponseInterface $response |
||
| 29 | * @param string $data Parsed response data |
||
| 30 | * |
||
| 31 | * @return IdentityProviderException |
||
| 32 | */ |
||
| 33 | 3 | public static function oauthException(ResponseInterface $response, $data) |
|
| 40 | |||
| 41 | /** |
||
| 42 | * Creates identity exception from response. |
||
| 43 | * |
||
| 44 | * @param ResponseInterface $response |
||
| 45 | * @param string $message |
||
| 46 | * |
||
| 47 | * @return IdentityProviderException |
||
| 48 | */ |
||
| 49 | 6 | protected static function fromResponse(ResponseInterface $response, $message = null) |
|
| 53 | } |
||
| 54 |