Define custom classes for errors
It may be interesting to define custom classes for errors related to talon functionalities. I have in mind something like
class TalonException(Exception):
pass
and the corresponding class TalonValueError(TalonException)
, class TalonValueError(TalonTypeError)
, etc. . This would improve the readability of the raised errors and the quality of the testing process.
Additional refs.: Exception hierarchy