def METHOD_NAME(self):
    event = self.receive_message()
    self.counter += 1
    if self.counter == 1:
        raise ValueError('This initialization intionally raises an error!')
    self.send_message(event)
    self.acknowledge_message()