dyaml.exception

Exceptions thrown by D:YAML and _exception related code.

Types 11

classYAMLException : Exception

Base class for all exceptions thrown by D:YAML.

structMark

Position in a YAML stream, used for error messages.

Fields
string nameFile name.
ushort lineLine number.
ushort columnColumn number.
Methods
void toString(W)(ref W writer) const scopeGet a string representation of the mark.
Constructors
this(string name, const uint line, const uint column)Construct a Mark with specified line and column in the file.

Base class of YAML exceptions with marked positions of the problem.

Fields
Mark markPosition of the error.
Nullable!Mark mark2Additional position information, usually the start of a token or scalar
string mark2LabelA label for the extra information
Methods
void toString(W)(ref W sink) constCustom toString to add context without requiring allocation up-front
void toString(scope void delegate(in char[]) sink) constDitto
const(char)[] message() const @safe nothrowAn override of message
Constructors
this(string context, const Mark mark, string mark2Label, const Nullable!Mark mark2, string file = __FILE__, size_t line = __LINE__)
this(string msg, const Mark mark, string file = __FILE__, size_t line = __LINE__)

Exception thrown on composer errors.

Exception thrown on constructor errors.

Exception thrown on loader errors.

Exception thrown on node related errors.

Exception thrown on parser errors.

Exception thrown on Reader errors.

Exception thrown on Representer errors.

Exception thrown on scanner errors.

Templates 1

tmplMarkedExceptionCtors()

Constructors of marked YAML exceptions are identical, so we use a mixin.

See Also

MarkedYAMLException