'Alternative error attach function to the :meth:`errorhandler`
decorator that is more straightforward to use for non decorator
usage.
.. versionadded:: 0.7'

@setupmethod
def register_error_handler(self, code_or_exception, f):

    self._register_error_handler(None, code_or_exception, f)
