protected function determineException(HttpClientException $exception)
    {
        if (!empty($exception->getResponse()) && in_array($exception->getResponse()->getStatusCode(), [400, 409])) {
            return new BadRequest($exception->getResponse());
        }

        return $exception;
    }
protected function determineException(HttpClientException $exception)
    {
        if (!empty($exception->getResponse()) && in_array($exception->getResponse()->getStatusCode(), [400, 409])) {
            return new BadRequest($exception->getResponse());
        }

        return $exception;
    }
protected function determineException ( HttpClientException $ exception ) { if ( ! empty ( $ exception -> getResponse ( ) ) && in_array ( $ exception -> getResponse ( ) -> getStatusCode ( ) , [ 400 , 409 ] ) ) { return new BadRequest ( $ exception -> getResponse ( ) ) ; } return $ exception ; }
Catch Dropbox API request exception.

@param HttpClientException $exception

@return \Exception
Catch Dropbox API request exception .