Skip to content

Path exception alternative #5

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

Merged
merged 2 commits into from
Oct 21, 2022
Merged

Path exception alternative #5

merged 2 commits into from
Oct 21, 2022

Conversation

Silvan-WMDE
Copy link
Member

This is an alternative approach to #4 - tests are the same and green. :-)

Replace all occurences of the generic Exception in JsonPointer with the
more specific JsonPointerException so that the origin of the error is
made explicit and can be handled by consuming code.
@github-actions
Copy link

Lines Of Code

Language Files Lines Code Comments Blanks Complexity Bytes
PHP 39 (+2) 3962 (+161) 3074 (+119) 331 (+23) 557 (+19) 203 (+2) 101.9K (+4.7K)

@Silvan-WMDE Silvan-WMDE marked this pull request as ready for review October 20, 2022 08:19
This exception is thrown in JsonPatch::apply whenever a JsonPointer
call fails.
@Silvan-WMDE Silvan-WMDE force-pushed the path-exception-alternative branch from dddf362 to 7125f9f Compare October 20, 2022 08:27
Copy link
Member

@jakobw jakobw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's go with this approach! \o/

@jakobw jakobw merged commit 70a38ff into master Oct 21, 2022
@jakobw jakobw deleted the path-exception-alternative branch October 21, 2022 08:18
@jakobw jakobw mentioned this pull request Oct 21, 2022
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants