Currently we only allow to register an ErrorHandler by fully qualified classname, it would be more useful to allow injection of an instance, so that the user can easily configure it or inject other dependencies to it.