-
Notifications
You must be signed in to change notification settings - Fork 77
Open
Description
Right now, the handle_response raises Exception:
Line 61 in 27a70d1
| raise Exception(msg) |
which is probably not a good practice. I propose to define at least one library-specific exception and optionally other derived exceptions... Something like this:
class FanucPyException(Exception):
pass
class CommException(FanucPyException)
pass
Which will allow me (in the application code) to catch just the specific exception raised by the library, instead of the generic one.
Thanks for your consideration.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels