diff --git a/source/dyaml/loader.d b/source/dyaml/loader.d index f0de9d4..26c904f 100644 --- a/source/dyaml/loader.d +++ b/source/dyaml/loader.d @@ -125,6 +125,10 @@ struct Loader /// Params: data = String to load YAML from. /// /// Returns: Loader loading YAML from given string. + /// + /// Throws: + /// + /// YAMLException if data could not be parsed (e.g. a decoding error) static Loader fromString(string data) { return Loader(new MemoryStream(cast(char[])data));