code: def addHandlerClass(clazz):
      
      if not issubclass(clazz, EventHandler):
          raise ValueError("%s must be subclassed from %s" % (clazz, EventHandler))
      _handler_classes[clazz.name] = clazz
docs: Register handler class.