boostorg / property_tree

Boost.org property_tree module
http://boost.org/libs/property_tree
55 stars 93 forks source link

add an interface to pass file name (or a symbolic name for the input stream) to the parser for exceptions #41

Open bubnikv opened 5 years ago

bubnikv commented 5 years ago

When parsing a faulty file or stream, exceptions are often thrown with an empty file names, which are then replaced with in the file_parser_error() constructor. It would help our project a lot, if there was a way to pass the name of the file or a symbolic name of the input stream to the parser functions, so that this field would be filled in in the exception and shown to the user.