--
You received this message because you are subscribed to the Google Groups "SnakeYAML" group.
To unsubscribe from this group and stop receiving emails from it, send an email to snakeyaml-core+unsubscribe@googlegroups.com.
To post to this group, send email to snakeyaml-core@googlegroups.com.
Visit this group at https://groups.google.com/group/snakeyaml-core.
For more options, visit https://groups.google.com/d/optout.
Object loadedYaml = yaml.load(yamlStream);
to this (which I constructed by reading your source)
Node node = yaml.compose(new InputStreamReader(yamlStream));
Dear Niels,every Node contains a Mark. The Mark has the line numbers.Cheers,Andrey
On Mon, Mar 27, 2017 at 9:20 PM, Niels Basjes <ni...@basj.es> wrote:
Hi,In my application ( https://github.com/nielsbasjes/yauaa ) I read multiple Yaml files.The settings found in those files are evaluated at startup and in some cases an error occurs in one of those settings.Now from the yaml perspective these files are correct, yet from the perspective of my application they are not.What I would like is to show along with the filename also the line number where the error occurred.I have not found any reference to the line number in any of the datastructures that I get.So perhaps you guys can advise me on how to handle this?ThanksNiels Basjes
--
You received this message because you are subscribed to the Google Groups "SnakeYAML" group.
To unsubscribe from this group and stop receiving emails from it, send an email to snakeyaml-cor...@googlegroups.com.
To post to this group, send email to snakeya...@googlegroups.com.
Visit this group at https://groups.google.com/group/snakeyaml-core.
For more options, visit https://groups.google.com/d/optout.
--Andrey Somov
To unsubscribe from this group and stop receiving emails from it, send an email to snakeyaml-core+unsubscribe@googlegroups.com.
To post to this group, send email to snakeyaml-core@googlegroups.com.
Visit this group at https://groups.google.com/group/snakeyaml-core.
For more options, visit https://groups.google.com/d/optout.
Andrey Somov