code: def exception(self, *exceptions):
          
  
          def response(handler):
              for exception in exceptions:
                  if isinstance(exception, (tuple, list)):
                      for e in exception:
                          self.error_handler.add(e, handler)
                  else:
                      self.error_handler.add(exception, handler)
              return handler
  
          return response
docs: Decorate a function to be registered as a handler for exceptions
  
          :param exceptions: exceptions
          :return: decorated function