We currently raise a JSONPointerIndexError when parsing a JSON Pointer string with an out of range index (set by class variables min_int_index and max_int_index, not out of range for any particular data).
JSONPointerIndexError inherits from JSONPointerResolutionError, which is reserved for errors at resolution time, not parse time. We should instead raise a JSONPointerError or a direct subclass of it.
(Also, JSONPointerEncodeError is unused. It predates the dodgy # and ~ syntax.)
We currently raise a
JSONPointerIndexErrorwhen parsing a JSON Pointer string with an out of range index (set by class variablesmin_int_indexandmax_int_index, not out of range for any particular data).JSONPointerIndexErrorinherits fromJSONPointerResolutionError, which is reserved for errors at resolution time, not parse time. We should instead raise aJSONPointerErroror a direct subclass of it.(Also,
JSONPointerEncodeErroris unused. It predates the dodgy#and~syntax.)