'This method is called from the output object. The output object was
called from a plugin or from the framework. This method should take an
action for error messages.'

def error(self, message, new_line=True):

    error_data = (message, self.get_caller())
    self._errors.append(error_data)
