add BadConfiguationException.