private function checkForOaipmhException(HttpException $httpException)
    {
        try {
            if ($resp = $httpException->getBody()) {
                $this->decodeResponse($resp); // Throw OaipmhException in case of an error
            }
        } catch (MalformedResponseException $e) {
            // There was no valid OAI error in the response, therefore re-throw HttpException
        }

        throw $httpException;
    }
private function checkForOaipmhException(HttpException $httpException)
    {
        try {
            if ($resp = $httpException->getBody()) {
                $this->decodeResponse($resp); // Throw OaipmhException in case of an error
            }
        } catch (MalformedResponseException $e) {
            // There was no valid OAI error in the response, therefore re-throw HttpException
        }

        throw $httpException;
    }
private function checkForOaipmhException ( HttpException $ httpException ) { try { if ( $ resp = $ httpException -> getBody ( ) ) { $ this -> decodeResponse ( $ resp ) ; // Throw OaipmhException in case of an error } } catch ( MalformedResponseException $ e ) { // There was no valid OAI error in the response, therefore re-throw HttpException } throw $ httpException ; }
Check for OAI-PMH Exception from HTTP Exception

Converts a HttpException into an OAI-PMH exception if there is an
OAI-PMH Error Code.

@param HttpException $httpException
Check for OAI - PMH Exception from HTTP Exception