Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exceptions could potentially report the exact field that raised them #37

Open
dtrugman opened this issue Nov 13, 2023 · 0 comments
Open
Assignees
Labels
enhancement New feature or request

Comments

@dtrugman
Copy link
Owner

Raised by @Alston-Tang in #33, all parsers would throw an exception saying where parsing failed, but the information could be better, for example:

    catch (const std::invalid_argument& ex)
    {
        throw parser_error("Corrupted block stat - Invalid argument", line);

If we could find a way to include the actual field name in the exception, that could be great.

@dtrugman dtrugman added the enhancement New feature or request label Nov 13, 2023
@dtrugman dtrugman self-assigned this Nov 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant