lib/AMNL/Mollie/Client.php
protected function checkResponseForError(\SimpleXMLElement $response)
    {
        if ($response->item != null && ((string) $response->item['type']) == 'error') {
            throw new MollieServerErrorException((string) $response->item->message, intval($response->item->errorcode));
        }
    }
protected function checkResponseForError(\SimpleXMLElement $response)
    {
        if ($response->item != null && ((string) $response->item['type']) == 'error') {
            throw new MollieServerErrorException((string) $response->item->message, intval($response->item->errorcode));
        }
    }
protected function checkResponseForError ( \ SimpleXMLElement $ response ) { if ( $ response -> item != null && ( ( string ) $ response -> item [ 'type' ] ) == 'error' ) { throw new MollieServerErrorException ( ( string ) $ response -> item -> message , intval ( $ response -> item -> errorcode ) ) ; } }
Check if the given response contains an error, if so, it will
throw an exception.

@param \SimpleXMLElement $response
@throws \AMNL\Mollie\Exception\MollieServerErrorException
Check if the given response contains an error if so it will throw an exception .