Coverage for src/signal_edges/exceptions.py: 100%

7 statements  

« prev     ^ index     » next       coverage.py v7.4.3, created at 2024-04-21 11:16 +0000

1"""Common exceptions for the package.""" 

2 

3 

4class Error(Exception): 

5 """Base exception, all exceptions in the package must inherit from this one.""" 

6 

7 

8class SignalError(Error): 

9 """Signal exception class.""" 

10 

11 

12class VoltageSignalError(SignalError): 

13 """Voltage signal exception class.""" 

14 

15 

16class FiltersError(Error): 

17 """Filters exception class.""" 

18 

19 

20class EdgesError(Error): 

21 """Edges exception class.""" 

22 

23 

24class StateLevelsError(Error): 

25 """State levels exception class.""" 

26 

27 

28class PlotterError(Error): 

29 """Opinionated plotter exception class."""