AguaClara / aide_document-DEPRECATED

This module is no longer being maintained due to the transition to Onshape.
MIT License
0 stars 0 forks source link

Error Handling #4

Closed matanp closed 6 years ago

matanp commented 6 years ago

Create custom errors to better handle and report on errors having to do with the input json having a different structure than our code assumes.

matanp commented 6 years ago

Implemented: custom error class called JsonKeyError that takes in both the key and value of the failed piece of the json. This allows the developer to have access to exactly which piece of the json caused the issue.