ResInsight icon indicating copy to clipboard operation
ResInsight copied to clipboard

Python: Consider simplifying error handling for users

Open lindkvis opened this issue 6 years ago • 0 comments

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:

  1. We should never print any error messages inside the rips-methods.
  2. We should never swallow errors that stops Python-developers reacting to problems in their scripts.
  3. It should be simple for the users to see if an error has occured and print the error messages in their scripts.
  4. rips methods should be kept as lean as possible.

lindkvis avatar Feb 17 '20 09:02 lindkvis