public static function clientException(ResponseInterface $response, $data)
    {
        return static::fromResponse(
            $response,
            isset($data['message']) ? $data['message'] : json_encode($data)
        );
    }
public static function clientException(ResponseInterface $response, $data)
    {
        return static::fromResponse(
            $response,
            isset($data['message']) ? $data['message'] : json_encode($data)
        );
    }
public static function clientException ( ResponseInterface $ response , $ data ) { return static :: fromResponse ( $ response , isset ( $ data [ 'message' ] ) ? $ data [ 'message' ] : json_encode ( $ data ) ) ; }
Creates client exception from response

@param  ResponseInterface $response
@param  array $data Parsed response data

@return IdentityProviderException
Creates client exception from response