if Null
Sets a handler to be used when the configuration field is null.
This method allows specifying a custom implementation of the ErrorHandlerWith interface that defines the behavior when a required configuration field is found to be null during validation or loading.
Parameters
handler
the class of the custom error handler implementing ErrorHandlerWith