Enable registering errorhandlers by class