mc2-project / mc2

A Platform for Secure Analytics and Machine Learning
Apache License 2.0
297 stars 43 forks source link

Add robust exceptions to Python client #175

Open jochasinga opened 3 years ago

jochasinga commented 3 years ago

Currently the Python client does not have a robust and friendly exception classes and throws a Segmentation fault error on the erratically formatted schema files and this error, which does not do a good job at hinting what goes wrong:

terminate called after throwing an instance of 'std::runtime_error'
  what():  Not a number.
Aborted (core dumped)

We should add some important exception classes to the client with more information that handle the lower-level errors bubbling up to the caller.