Skip to content

Add context to JsonPatchException #84

Open
@milindrao

Description

@milindrao

I get an JsonPatchException "no such path in target JSON document". There is no context at all regarding what the path is that's missing. Can you please add that?

e.g.. In RemoveOperation, can the path be added to the exception message?

if (path.isEmpty())
        return MissingNode.getInstance();
if (path.path(node).isMissingNode())
        throw new JsonPatchException(BUNDLE.getMessage("jsonPatch.noSuchPath"));

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions