You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On version 0.4.7 the exception message was something like "[ADD Operation] parent is not a container in source, path provided : //num/- | node : 100"
And there was no other way to extract actionable info from the exception
Actual Behavior
On version 0.4.9 the exception message became (for example): "Cannot reference past scalar value"
An Operation and JsonPointer fields were added to the exception, but they are not public, therefore not usable by clients.
There is a toString that looks similar to the previous message, but doesn't seem to be used
Having to use the message is a bad idea anyway. So if possible having some accessible fields on the exception that would describe more details about the operation failure, etc would be greatly welcomed
Expected Behavior
On version 0.4.7 the exception message was something like
"[ADD Operation] parent is not a container in source, path provided : //num/- | node : 100
"And there was no other way to extract actionable info from the exception
Actual Behavior
On version 0.4.9 the exception message became (for example):
"Cannot reference past scalar value"
An Operation and JsonPointer fields were added to the exception, but they are not public, therefore not usable by clients.
There is a toString that looks similar to the previous message, but doesn't seem to be used
Having to use the message is a bad idea anyway. So if possible having some accessible fields on the exception that would describe more details about the operation failure, etc would be greatly welcomed
Steps to Reproduce the Problem
patch("[{\"op\": \"add\", \"path\": \"/num/-\", \"value\": 100}]", "{\"num\":100}")
Specifications
Library Version:
0.4.9
Language (e.g. Java 1.8, Scala, etc):
Java 8
The text was updated successfully, but these errors were encountered: