Record Class PatchError.PathNotFound
java.lang.Object
java.lang.Record
ca.marcusdunn.jsonlens.patch.PatchError.PathNotFound
- Record Components:
operation- the index of the operationerror- the reason, as a pointer error
- All Implemented Interfaces:
PatchError
- Enclosing interface:
PatchError
public static record PatchError.PathNotFound(int operation, PointerError error)
extends Record
implements PatchError
The target location does not exist. For
add, its parent does not exist, or the last token
is not a valid member name or array position (Section 4.1).-
Nested Class Summary
Nested classes/interfaces inherited from interface PatchError
PatchError.DuplicateMember, PatchError.FromNotFound, PatchError.InvalidPointer, PatchError.MissingMember, PatchError.MoveIntoChild, PatchError.NotAnArray, PatchError.NotAnObject, PatchError.NotAString, PatchError.PathNotFound, PatchError.RootRemoved, PatchError.TestFailed, PatchError.UnknownOperation, PatchError.ValueNotRepresentable -
Constructor Summary
ConstructorsConstructorDescriptionPathNotFound(int operation, PointerError error) Creates an instance of aPathNotFoundrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.error()Returns the value of theerrorrecord component.final inthashCode()Returns a hash code value for this object.intReturns the value of theoperationrecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from interface PatchError
message
-
Constructor Details
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
operation
-
error
-