avian2 / jsonmerge

Merge a series of JSON documents.
MIT License
214 stars 25 forks source link

Better exception classes #10

Closed avian2 closed 10 years ago

avian2 commented 10 years ago

Currently, merge and get_schema methods only throw TypeError if something is wrong. It would be better to have own exception classes (possibly derived from TypeError) for better diagnostics from the user standpoint.

Maybe have SchemaError, BaseInstanceError and HeadInstanceError?