tryConfigPaths

Takes range of paths and one at a time tries to load config from each one. If the path doesn't exist, then the next candidate is checked. If the file exists, but parsing or deserializing are failed, InvalidConfig exception is thrown.

If functions go out of paths and none of them can be opened, then NoConfigLoaded exception is thrown.

tryConfigPaths
(
R
)
()
if (
isInputRange!R &&
is(ElementType!R == string)
)

Throws

NoConfigLoaded if can't load configuration file. InvalidConfig if configuration file is invalid (first successfully opened)

Meta

Authors

NCrashed <ncrashed@gmail.com> Zaramzan <shamyan.roman@gmail.com>