Class ConfigException

Base exception type thrown by the config parser

class ConfigException
  : object.Exception ;

Whenever dealing with Exceptions thrown by the config parser, catching this type will allow to optionally format with colors: ` try { auto conf = parseConfigFile!Config(cmdln); // ... } catch (ConfigException exc) { writeln("Parsing the config file failed:"); writelfln(isOutputATTY() ? "%S" : "%s", exc); } `

Constructors

NameDescription
this (path, position, file, line) Constructor

Fields

NameTypeDescription
loc configy.exceptions.LocationPosition at which the error happened
path stringThe path in the configuration structure at which the error resides

Methods

NameDescription
toString () Overrides Throwable.toString and its sink overload
formatMessage (sink, spec) Hook called by toString to simplify coloring