def METHOD_NAME(self, error, funcname, args, default_return = []):
    """
    To use as a deferred error back
    @returns: a list containing error informations
    @rtype: list
    """
    if error.type == ConnectionRefusedError:
        self.logger.error("%s %s has failed: connection refused" % (funcname, args))
        ret = ['PULSE2_ERR', PULSE2_ERR_CONN_REF,
               self.server_addr, default_return]
    elif error.type == ConnectionLost:
        self.logger.error("%s %s has failed: connection lost" % (funcname, args))
        ret = ['PULSE2_ERR', PULSE2_ERR_LOST,
               self.server_addr, default_return]
    elif error.type == TimeoutError:
        self.logger.error("%s %s has failed: timeout" % (funcname, args))
        ret = ['PULSE2_ERR', PULSE2_ERR_TIMEOUT,
               self.server_addr, default_return]
    elif error.type == exceptions.ValueError:
        self.logger.error("%s %s has failed: the mountpoint don't exists" % (funcname, args))
        ret = ['PULSE2_ERR', PULSE2_ERR_404,
               self.server_addr, default_return]
    else:
        self.logger.error("%s %s has failed: %s" % (funcname, args, error))
        ret = ['PULSE2_ERR', PULSE2_ERR_UNKNOWN,
               self.server_addr, default_return]
    return ret