Skip to content

How to get position info or parser context with custom from_json() that may throw exceptions? #1508

Description

@traceon

Sorry if the question is lame or was answered before (couldn't find anything similar in the issues history).

Is it possible to get a position info or, better, a typical json::exception with a context where the "parsing" failed, for any exceptions thrown inside my custom from_json() for third party classes that may throw errors on their from_string() builder functions?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions