CZ-NIC / yangson

GNU Lesser General Public License v3.0
53 stars 20 forks source link

Redefine exceptions InstanceException and ValidationError #97

Closed llhotka closed 3 years ago

llhotka commented 3 years ago

These exception classes now have the offending InstanceNode as their member (instead of its JSONPointer), so it is easier for exception handlers to inspect the instance.

This change also affects the following subclasses:

llhotka commented 3 years ago

Oh yes, I forgot to use the new definitions whern raising the exceptions. It is now fixed.