public function setResponse($response)
    {
        $xml = simplexml_load_string($response);
        if (!empty($xml->error)) {
            $this->message = (string) $xml->error;
        }
    }
public function setResponse($response)
    {
        $xml = simplexml_load_string($response);
        if (!empty($xml->error)) {
            $this->message = (string) $xml->error;
        }
    }
public function setResponse ( $ response ) { $ xml = simplexml_load_string ( $ response ) ; if ( ! empty ( $ xml -> error ) ) { $ this -> message = ( string ) $ xml -> error ; } }
set exception message from response

@param string $response
set exception message from response