Interface PointerError
- All Known Implementing Classes:
PointerError.DuplicateName, PointerError.IndexOutOfRange, PointerError.InvalidEscape, PointerError.InvalidFragment, PointerError.InvalidIndex, PointerError.MemberNotFound, PointerError.MissingSlash, PointerError.NotAContainer
public sealed interface PointerError
permits PointerError.MissingSlash, PointerError.InvalidEscape, PointerError.InvalidFragment, PointerError.MemberNotFound, PointerError.DuplicateName, PointerError.InvalidIndex, PointerError.IndexOutOfRange, PointerError.NotAContainer
An error of a JSON Pointer (RFC 6901, Section 7): invalid syntax, or a pointer that does not reference a value.
| Error | Cause |
|---|---|
PointerError.MissingSlash |
a pointer that is not empty does not start with / |
PointerError.InvalidEscape |
a ~ is not followed by 0 or 1 |
PointerError.InvalidFragment |
a URI fragment identifier is not valid, or its bytes are not UTF-8 |
PointerError.MemberNotFound |
an object has no member with the name |
PointerError.DuplicateName |
an object has more than one member with the name |
PointerError.InvalidIndex |
a token for an array is not an array index, for example 01, x, or - |
PointerError.IndexOutOfRange |
an array index is not less than the length of the array |
PointerError.NotAContainer |
a token follows a value that is not an object or an array |
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordAn object has more than one member with the name of a token.static final recordAn array index is not less than the length of the array.static final recordA~is not followed by0or1(RFC 6901, Section 3).static final recordA URI fragment identifier is not a valid JSON Pointer (RFC 6901, Section 6): it does not start with#, it has a character that a fragment does not permit, a percent-encoding is not complete, or the bytes are not UTF-8.static final recordA token for an array is not an array index: digits without a leading zero (RFC 6901, Section 4).static final recordAn object has no member with the name of a token.static final recordA pointer that is not empty does not start with/(RFC 6901, Section 3).static final recordA token follows a value that is not an object or an array. -
Method Summary
-
Method Details
-
message
-