protected function getResponseError($property)
    {
        $exception = $this->getResponseObject();

        if (!$exception instanceof \Exception) {
            throw new InvalidArgumentException('response object', 'is not an exception');
        }

        switch ($property) {
            case 'code':
                return $exception->getCode();

            case 'description':
            case 'message':
                return $exception->getMessage();
        }

        throw new InvalidArgumentException($property, 'is invalid');
    }
protected function getResponseError($property)
    {
        $exception = $this->getResponseObject();

        if (!$exception instanceof \Exception) {
            throw new InvalidArgumentException('response object', 'is not an exception');
        }

        switch ($property) {
            case 'code':
                return $exception->getCode();

            case 'description':
            case 'message':
                return $exception->getMessage();
        }

        throw new InvalidArgumentException($property, 'is invalid');
    }
protected function getResponseError ( $ property ) { $ exception = $ this -> getResponseObject ( ) ; if ( ! $ exception instanceof \ Exception ) { throw new InvalidArgumentException ( 'response object' , 'is not an exception' ) ; } switch ( $ property ) { case 'code' : return $ exception -> getCode ( ) ; case 'description' : case 'message' : return $ exception -> getMessage ( ) ; } throw new InvalidArgumentException ( $ property , 'is invalid' ) ; }
Get property from the returned Exception.

@param string $property Property to return

@return int|mixed|string Property

@throws \eZ\Publish\Core\Base\Exceptions\InvalidArgumentException If property is not defined
Get property from the returned Exception .