def METHOD_NAME(self, failure):
    if isinstance(failure.value, GCMAuthenticationError) or \
            isinstance(failure.value, ConnectError):
        raise failure.value
    self.log.METHOD_NAME("GCMClient failure: {}".format(failure.value))
    raise RouterException("Server error: {}".format(failure.value))