public function setException(exception $e)
    {
        if (isset($this->response)) {
            $this->response->setException($e);
        } else {
            throw $e;
        }
    }
public function setException(exception $e)
    {
        if (isset($this->response)) {
            $this->response->setException($e);
        } else {
            throw $e;
        }
    }
public function setException ( exception $ e ) { if ( isset ( $ this -> response ) ) { $ this -> response -> setException ( $ e ) ; } else { throw $ e ; } }
Handle the exception depending on processing position we either
set the response exception or throw the exception if the response is

@param exception $e
@throws exception
Handle the exception depending on processing position we either set the response exception or throw the exception if the response is