Skip to content

Enhancement: throw dedicated exception for a test operation failure #200

Open
@turing85

Description

@turing85

Currently, when a test operation fails, a JsonPatchApplicationException is thrown. This makes it hard to distinguish an input error (e.g. referencing a nonexisting path) from a failed test (it is possible by parsing the message, but a separation by exception types would be easier). The new exception type could be a subtype of JsonPatchApplicationException.

Story:
AS a developer
WHEN a test operation fails
THEN I want to receive a dedicated exception signaling that the test path has not the excpected value so I can distinguish between a syntactical error (like a wrong path) and a failed expectation.

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