ResInsight
ResInsight copied to clipboard
Python: Consider simplifying error handling for users
Currently we have two different exception types: grpc.RpcError and a standard Exception which may be sent up to user and the user may have to deal with.
Consider improving this so the user only has to deal with one type of error. Requirements for solution:
- We should never print any error messages inside the rips-methods.
- We should never swallow errors that stops Python-developers reacting to problems in their scripts.
- It should be simple for the users to see if an error has occured and print the error messages in their scripts.
- rips methods should be kept as lean as possible.