Throw ConfigException when config can not be loaded.