René's URL Explorer Experiment


Title: Informative msgs when JsonPatchException is thrown by objectsmiths · Pull Request #103 · java-json-tools/json-patch · GitHub

Open Graph Title: Informative msgs when JsonPatchException is thrown by objectsmiths · Pull Request #103 · java-json-tools/json-patch

X Title: Informative msgs when JsonPatchException is thrown by objectsmiths · Pull Request #103 · java-json-tools/json-patch

Description: This PR adds informative msgs to the cases when JsonPatchException is thrown . (for example a missing path is passed etc.). All the tests have been modified to take in to account the new messages. We have used this software in our internal project and found it useful to have this information when some thing changed on our backend and the front end was in sync. It would throw generic jsonPatchException (with noSuchPath or noSuchParent which while useful would not pin point to the location of the error. This becomes a problem in projects with quite a few team members who are not proficient in debugging and the architecture is complex. All the tests are passing after the changes.

Open Graph Description: This PR adds informative msgs to the cases when JsonPatchException is thrown . (for example a missing path is passed etc.). All the tests have been modified to take in to account the new messages. ...

X Description: This PR adds informative msgs to the cases when JsonPatchException is thrown . (for example a missing path is passed etc.). All the tests have been modified to take in to account the new messages. ...

Opengraph URL: https://github.com/java-json-tools/json-patch/pull/103

X: @github

direct link

Domain: patch-diff.githubusercontent.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:a1e44af2-e09c-f6b7-be2e-ef992984d1f5
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idCF14:27BEBA:961F69:C066AC:6976BFA5
html-safe-noncef9d615438c87b735d3e419e90619de8e4ff9f75cab56043b0ed89c2b3d887c23
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRjE0OjI3QkVCQTo5NjFGNjk6QzA2NkFDOjY5NzZCRkE1IiwidmlzaXRvcl9pZCI6IjUzMzE3NzE5MzA1NzczODc0MjkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac895735f4996e23ab2204641efa12d3bac56df52a5bfd2c4d7d36010ecb2ef6c5
hovercard-subject-tagpull_request:684814816
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/java-json-tools/json-patch/pull/103/files
twitter:imagehttps://avatars.githubusercontent.com/u/13308133?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/13308133?s=400&v=4
og:image:altThis PR adds informative msgs to the cases when JsonPatchException is thrown . (for example a missing path is passed etc.). All the tests have been modified to take in to account the new messages. ...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None032152924a283b83384255d9489e7b93b54ba01da8d380b05ecd3953b3212411
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/java-json-tools/json-patch git https://github.com/java-json-tools/json-patch.git
octolytics-dimension-user_id28316821
octolytics-dimension-user_loginjava-json-tools
octolytics-dimension-repository_id8911984
octolytics-dimension-repository_nwojava-json-tools/json-patch
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id8911984
octolytics-dimension-repository_network_root_nwojava-json-tools/json-patch
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release5b577f6be6482e336e3c30e8daefa30144947b17
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/java-json-tools/json-patch/pull/103/files#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fjava-json-tools%2Fjson-patch%2Fpull%2F103%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fjava-json-tools%2Fjson-patch%2Fpull%2F103%2Ffiles
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=java-json-tools%2Fjson-patch
Reloadhttps://patch-diff.githubusercontent.com/java-json-tools/json-patch/pull/103/files
Reloadhttps://patch-diff.githubusercontent.com/java-json-tools/json-patch/pull/103/files
Reloadhttps://patch-diff.githubusercontent.com/java-json-tools/json-patch/pull/103/files
java-json-tools https://patch-diff.githubusercontent.com/java-json-tools
json-patchhttps://patch-diff.githubusercontent.com/java-json-tools/json-patch
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fjava-json-tools%2Fjson-patch
Fork 196 https://patch-diff.githubusercontent.com/login?return_to=%2Fjava-json-tools%2Fjson-patch
Star 690 https://patch-diff.githubusercontent.com/login?return_to=%2Fjava-json-tools%2Fjson-patch
Code https://patch-diff.githubusercontent.com/java-json-tools/json-patch
Issues 49 https://patch-diff.githubusercontent.com/java-json-tools/json-patch/issues
Pull requests 19 https://patch-diff.githubusercontent.com/java-json-tools/json-patch/pulls
Actions https://patch-diff.githubusercontent.com/java-json-tools/json-patch/actions
Projects 0 https://patch-diff.githubusercontent.com/java-json-tools/json-patch/projects
Wiki https://patch-diff.githubusercontent.com/java-json-tools/json-patch/wiki
Security 0 https://patch-diff.githubusercontent.com/java-json-tools/json-patch/security
Insights https://patch-diff.githubusercontent.com/java-json-tools/json-patch/pulse
Code https://patch-diff.githubusercontent.com/java-json-tools/json-patch
Issues https://patch-diff.githubusercontent.com/java-json-tools/json-patch/issues
Pull requests https://patch-diff.githubusercontent.com/java-json-tools/json-patch/pulls
Actions https://patch-diff.githubusercontent.com/java-json-tools/json-patch/actions
Projects https://patch-diff.githubusercontent.com/java-json-tools/json-patch/projects
Wiki https://patch-diff.githubusercontent.com/java-json-tools/json-patch/wiki
Security https://patch-diff.githubusercontent.com/java-json-tools/json-patch/security
Insights https://patch-diff.githubusercontent.com/java-json-tools/json-patch/pulse
Sign up for GitHub https://patch-diff.githubusercontent.com/signup?return_to=%2Fjava-json-tools%2Fjson-patch%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://patch-diff.githubusercontent.com/login?return_to=%2Fjava-json-tools%2Fjson-patch%2Fissues%2Fnew%2Fchoose
objectsmithshttps://patch-diff.githubusercontent.com/objectsmiths
java-json-tools:masterhttps://patch-diff.githubusercontent.com/java-json-tools/json-patch/tree/master
objectsmiths:informative-msgshttps://patch-diff.githubusercontent.com/objectsmiths/json-patch/tree/informative-msgs
Conversation 0 https://patch-diff.githubusercontent.com/java-json-tools/json-patch/pull/103
Commits 2 https://patch-diff.githubusercontent.com/java-json-tools/json-patch/pull/103/commits
Checks 0 https://patch-diff.githubusercontent.com/java-json-tools/json-patch/pull/103/checks
Files changed https://patch-diff.githubusercontent.com/java-json-tools/json-patch/pull/103/files
Please reload this pagehttps://patch-diff.githubusercontent.com/java-json-tools/json-patch/pull/103/files
Informative msgs when JsonPatchException is thrown https://patch-diff.githubusercontent.com/java-json-tools/json-patch/pull/103/files#top
Show all changes 2 commits https://patch-diff.githubusercontent.com/java-json-tools/json-patch/pull/103/files
8f5df92 work in progress ramnukalacbre Jul 6, 2021 https://patch-diff.githubusercontent.com/java-json-tools/json-patch/pull/103/commits/8f5df926a4e77ec36713490c6f216476cb19d5ab
ea807b5 working tests objectsmiths Jul 7, 2021 https://patch-diff.githubusercontent.com/java-json-tools/json-patch/pull/103/commits/ea807b5b19d7a016f82b43f569671acd9cb786c6
Clear filters https://patch-diff.githubusercontent.com/java-json-tools/json-patch/pull/103/files
Please reload this pagehttps://patch-diff.githubusercontent.com/java-json-tools/json-patch/pull/103/files
Please reload this pagehttps://patch-diff.githubusercontent.com/java-json-tools/json-patch/pull/103/files
build.gradle https://patch-diff.githubusercontent.com/java-json-tools/json-patch/pull/103/files#diff-49a96e7eea8a94af862798a45174e6ac43eb4f8b4bd40759b5da63ba31ec3ef7
AddOperation.java https://patch-diff.githubusercontent.com/java-json-tools/json-patch/pull/103/files#diff-c3a11a151e8e66bbbff9176d9ecb417388707184f41bfa1fdcc2c8fdb6f4eb91
CopyOperation.java https://patch-diff.githubusercontent.com/java-json-tools/json-patch/pull/103/files#diff-7e008996b6a5ab4242147b438facc8a09c56462b64dab4aa74b852ea9fce6a15
MoveOperation.java https://patch-diff.githubusercontent.com/java-json-tools/json-patch/pull/103/files#diff-9848ddcc59ea29c38768c2fe9a70c8b02addf4f87e8828ad69f1bca047be81b0
RemoveOperation.java https://patch-diff.githubusercontent.com/java-json-tools/json-patch/pull/103/files#diff-0ed0a1db33b63c08e4c36c628fdddd962da2bfd0fcf5c19009fdf2828d762b2c
ReplaceOperation.java https://patch-diff.githubusercontent.com/java-json-tools/json-patch/pull/103/files#diff-7ac79ac998d37afd1ae12d0bedcf275d7c0b01284125e77a337c64d47a4ea518
TestOperation.java https://patch-diff.githubusercontent.com/java-json-tools/json-patch/pull/103/files#diff-1abd653b12762f3b30d6ba48a7f1288412861e1c4371a4db633c9a11a872a0c8
JsonPatchOperationTest.java https://patch-diff.githubusercontent.com/java-json-tools/json-patch/pull/103/files#diff-58c02fd864cd859b7f3c42be531934196f4df0855b46e11fd1181d7a84153ca5
build.gradlehttps://patch-diff.githubusercontent.com/java-json-tools/json-patch/pull/103/files#diff-49a96e7eea8a94af862798a45174e6ac43eb4f8b4bd40759b5da63ba31ec3ef7
View file https://patch-diff.githubusercontent.com/java-json-tools/json-patch/blob/ea807b5b19d7a016f82b43f569671acd9cb786c6/build.gradle
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://patch-diff.githubusercontent.com/java-json-tools/json-patch/pull/103/{{ revealButtonHref }}
https://patch-diff.githubusercontent.com/java-json-tools/json-patch/pull/103/files#diff-49a96e7eea8a94af862798a45174e6ac43eb4f8b4bd40759b5da63ba31ec3ef7
https://patch-diff.githubusercontent.com/java-json-tools/json-patch/pull/103/files#diff-49a96e7eea8a94af862798a45174e6ac43eb4f8b4bd40759b5da63ba31ec3ef7
https://patch-diff.githubusercontent.com/java-json-tools/json-patch/pull/103/files#diff-49a96e7eea8a94af862798a45174e6ac43eb4f8b4bd40759b5da63ba31ec3ef7
src/main/java/com/github/fge/jsonpatch/AddOperation.javahttps://patch-diff.githubusercontent.com/java-json-tools/json-patch/pull/103/files#diff-c3a11a151e8e66bbbff9176d9ecb417388707184f41bfa1fdcc2c8fdb6f4eb91
View file https://patch-diff.githubusercontent.com/java-json-tools/json-patch/blob/ea807b5b19d7a016f82b43f569671acd9cb786c6/src/main/java/com/github/fge/jsonpatch/AddOperation.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://patch-diff.githubusercontent.com/java-json-tools/json-patch/pull/103/{{ revealButtonHref }}
https://patch-diff.githubusercontent.com/java-json-tools/json-patch/pull/103/files#diff-c3a11a151e8e66bbbff9176d9ecb417388707184f41bfa1fdcc2c8fdb6f4eb91
https://patch-diff.githubusercontent.com/java-json-tools/json-patch/pull/103/files#diff-c3a11a151e8e66bbbff9176d9ecb417388707184f41bfa1fdcc2c8fdb6f4eb91
https://patch-diff.githubusercontent.com/java-json-tools/json-patch/pull/103/files#diff-c3a11a151e8e66bbbff9176d9ecb417388707184f41bfa1fdcc2c8fdb6f4eb91
src/main/java/com/github/fge/jsonpatch/CopyOperation.javahttps://patch-diff.githubusercontent.com/java-json-tools/json-patch/pull/103/files#diff-7e008996b6a5ab4242147b438facc8a09c56462b64dab4aa74b852ea9fce6a15
View file https://patch-diff.githubusercontent.com/java-json-tools/json-patch/blob/ea807b5b19d7a016f82b43f569671acd9cb786c6/src/main/java/com/github/fge/jsonpatch/CopyOperation.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://patch-diff.githubusercontent.com/java-json-tools/json-patch/pull/103/{{ revealButtonHref }}
https://patch-diff.githubusercontent.com/java-json-tools/json-patch/pull/103/files#diff-7e008996b6a5ab4242147b438facc8a09c56462b64dab4aa74b852ea9fce6a15
src/main/java/com/github/fge/jsonpatch/MoveOperation.javahttps://patch-diff.githubusercontent.com/java-json-tools/json-patch/pull/103/files#diff-9848ddcc59ea29c38768c2fe9a70c8b02addf4f87e8828ad69f1bca047be81b0
View file https://patch-diff.githubusercontent.com/java-json-tools/json-patch/blob/ea807b5b19d7a016f82b43f569671acd9cb786c6/src/main/java/com/github/fge/jsonpatch/MoveOperation.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://patch-diff.githubusercontent.com/java-json-tools/json-patch/pull/103/{{ revealButtonHref }}
https://patch-diff.githubusercontent.com/java-json-tools/json-patch/pull/103/files#diff-9848ddcc59ea29c38768c2fe9a70c8b02addf4f87e8828ad69f1bca047be81b0
src/main/java/com/github/fge/jsonpatch/RemoveOperation.javahttps://patch-diff.githubusercontent.com/java-json-tools/json-patch/pull/103/files#diff-0ed0a1db33b63c08e4c36c628fdddd962da2bfd0fcf5c19009fdf2828d762b2c
View file https://patch-diff.githubusercontent.com/java-json-tools/json-patch/blob/ea807b5b19d7a016f82b43f569671acd9cb786c6/src/main/java/com/github/fge/jsonpatch/RemoveOperation.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://patch-diff.githubusercontent.com/java-json-tools/json-patch/pull/103/{{ revealButtonHref }}
https://patch-diff.githubusercontent.com/java-json-tools/json-patch/pull/103/files#diff-0ed0a1db33b63c08e4c36c628fdddd962da2bfd0fcf5c19009fdf2828d762b2c
https://patch-diff.githubusercontent.com/java-json-tools/json-patch/pull/103/files#diff-0ed0a1db33b63c08e4c36c628fdddd962da2bfd0fcf5c19009fdf2828d762b2c
src/main/java/com/github/fge/jsonpatch/ReplaceOperation.javahttps://patch-diff.githubusercontent.com/java-json-tools/json-patch/pull/103/files#diff-7ac79ac998d37afd1ae12d0bedcf275d7c0b01284125e77a337c64d47a4ea518
View file https://patch-diff.githubusercontent.com/java-json-tools/json-patch/blob/ea807b5b19d7a016f82b43f569671acd9cb786c6/src/main/java/com/github/fge/jsonpatch/ReplaceOperation.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://patch-diff.githubusercontent.com/java-json-tools/json-patch/pull/103/{{ revealButtonHref }}
https://patch-diff.githubusercontent.com/java-json-tools/json-patch/pull/103/files#diff-7ac79ac998d37afd1ae12d0bedcf275d7c0b01284125e77a337c64d47a4ea518
https://patch-diff.githubusercontent.com/java-json-tools/json-patch/pull/103/files#diff-7ac79ac998d37afd1ae12d0bedcf275d7c0b01284125e77a337c64d47a4ea518
src/main/java/com/github/fge/jsonpatch/TestOperation.javahttps://patch-diff.githubusercontent.com/java-json-tools/json-patch/pull/103/files#diff-1abd653b12762f3b30d6ba48a7f1288412861e1c4371a4db633c9a11a872a0c8
View file https://patch-diff.githubusercontent.com/java-json-tools/json-patch/blob/ea807b5b19d7a016f82b43f569671acd9cb786c6/src/main/java/com/github/fge/jsonpatch/TestOperation.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://patch-diff.githubusercontent.com/java-json-tools/json-patch/pull/103/{{ revealButtonHref }}
https://patch-diff.githubusercontent.com/java-json-tools/json-patch/pull/103/files#diff-1abd653b12762f3b30d6ba48a7f1288412861e1c4371a4db633c9a11a872a0c8
https://patch-diff.githubusercontent.com/java-json-tools/json-patch/pull/103/files#diff-1abd653b12762f3b30d6ba48a7f1288412861e1c4371a4db633c9a11a872a0c8
src/test/java/com/github/fge/jsonpatch/JsonPatchOperationTest.javahttps://patch-diff.githubusercontent.com/java-json-tools/json-patch/pull/103/files#diff-58c02fd864cd859b7f3c42be531934196f4df0855b46e11fd1181d7a84153ca5
View file https://patch-diff.githubusercontent.com/java-json-tools/json-patch/blob/ea807b5b19d7a016f82b43f569671acd9cb786c6/src/test/java/com/github/fge/jsonpatch/JsonPatchOperationTest.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://patch-diff.githubusercontent.com/java-json-tools/json-patch/pull/103/{{ revealButtonHref }}
https://patch-diff.githubusercontent.com/java-json-tools/json-patch/pull/103/files#diff-58c02fd864cd859b7f3c42be531934196f4df0855b46e11fd1181d7a84153ca5
https://patch-diff.githubusercontent.com/java-json-tools/json-patch/pull/103/files#diff-58c02fd864cd859b7f3c42be531934196f4df0855b46e11fd1181d7a84153ca5
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.