Maybe it’s time for the IOC shell to actually look at the return values from the functions it calls. In conjunction with some sort of equivalent to the UNIX shell ‘-e’ flag it could prevent st.cmd scripts from proceeding in the face of error returns from configuration functions.
There are 3 places where I think it is OK to use exceptions now. - In constructor when a serious error occurs
- internally in code where all exceptions will be caught. asynPortDriver does this now.
- In drivers or plugins where the vendor library throws exceptions. All exceptions must be caught in this case.
|