boostorg / boostorg/property_tree

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

Open
#41 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
65
Forks
97
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the parser functions and the file_parser_error() constructor mentioned in the issue. Trace how input names reach exceptions, then define and implement a way to supply a file or symbolic stream name and verify that parser errors display it instead of .

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
api
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.