def METHOD_NAME(self, message, node):
    if message is None:
        message = self.message
        if message is None:
            raise ValueError("The message on the class is not set.")
    return message