Exceptions
Currently JSONTools has only one type of exception, JSONToolsError. It's thrown only when you try to inserta a value into a JSON structure in a way that is impossible.
Here are some examples:
- Trying to
setindex!to an object that is not aDictor anVector. - Trying to
setindexto a JSON data structure that has aDictroot with a path that doesn't start with aStringkey. - Trying to
setindex!to a JSON data structure that has aVectorroot with a path that doesn't start with anIntkey. - Trying to
setindex!to an array that is smaller than the index you're trying to set, without enabling thecanfilllistsoption in the path. - Trying to
setindex!to a path that is blocked by an existing value, without enabling thecandestroyoption in the path. - Trying to
setindex!to a path that requires creating parent objects, without enabling theparentsoption in the path.
JSONTools.JSONToolsError — TypeJSONToolsError is the base type for all errors from the JSONTools module.