TypeConfigException

Exception thrown when the type of the YAML node does not match the D type

Constructors

this
this(Node node, string expected, string path, string key, string file, size_t line)
this(string actual, string expected, string path, string key, Mark position, string file, size_t line)

Constructor

Members

Functions

formatMessage
void formatMessage(SinkType sink, FormatSpec!char spec)

Format the message with or without colors

Variables

actual
string actual;

The actual (in the YAML document) type of the node

expected
string expected;

The expected (as specified in the D type) type

Inherited Members

From ConfigException

yamlPosition
Mark yamlPosition;

Position at which the error happened

path
string path;

The path at which the key resides

key
string key;

If non-empty, the key under 'path' which triggered the error If empty, the key should be considered part of 'path'

toString
string toString()
void toString(void delegate(in char[]) sink)
void toString(SinkType sink, FormatSpec!char spec)

Overrides Throwable.toString and its sink overload

formatMessage
void formatMessage(SinkType sink, FormatSpec!char spec)

Hook called by toString to simplify coloring

Meta