Custom-defined exceptions.
The following custom-defined exceptions are defined in this module.
- InstrumentInUseError
- Raised when a user attempts to delete an instrument which is still used by an action in the sequence.
- InvalidInputError
- Raised when a user enters an input value which is not of the right type.
An error raised when an action cannot coerce an input to the right type.
This exception subsumes TypeError and ValueError so that they can be caught more easily by programs which set input values for actions, and so that it is easier for those programs to know precisely whence the error comes.
Parameters : | msg : str
valueName : str
val : str
|
---|
An exception generated in response to miscellaneous problems.
Parameters : | items : list of tuple of str
|
---|
Attributes
msg | str | A basic string: ‘Errors have been found.’ |
items | list of tuple of str | The same as items from the Parameters section. |
errorCount | int | The number of elements of items which are ‘error’s rather than mere ‘warning’s. |