def METHOD_NAME(self, test, err):
    self.assertMyTest(test)
    plugins = self.plugins
    plugin_handled = plugins.handleFailure(self.test, err)
    if plugin_handled:
        return
    self.test.passed = False
    formatted = plugins.formatFailure(self.test, err)
    if formatted is not None:
        err = formatted
    plugins.METHOD_NAME(self.test, err)
    self.result.METHOD_NAME(self.test, self._prepareErr(err))
    if self.config.stopOnError:
        self.shouldStop = True