Coverage for src/spectroflat/base/exceptions.py: 100%

11 statements  

« prev     ^ index     » next       coverage.py v7.3.2, created at 2024-03-28 07:59 +0000

1#!/usr/bin/env python3 

2# -*- coding: utf-8 -*- 

3""" 

4Definitions for custom exceptions go here 

5 

6@author: hoelken 

7""" 

8 

9 

10class IllegalStateException(RuntimeError): 

11 """ 

12 Exception to be raised if the current class is asked to 

13 perform an operation where the state conditions are not 

14 satisfied (yet). E.g. no data loaded. 

15 """ 

16 pass 

17 

18 

19class DataMissMatchException(RuntimeError): 

20 """ 

21 Exception to be raised if the data do not fit together. 

22 I.e. if a dark image from another cam is used, or if the 

23 integration times don't match. 

24 """ 

25 pass 

26 

27 

28class InsufficientDataException(RuntimeError): 

29 """ 

30 Exception to be raised if the data does not suffice processing. 

31 I.e. not enough frames to detect polarimetric state 

32 """ 

33 pass 

34 

35 

36class IllegalArgumentException(RuntimeError): 

37 """ 

38 Exception to be raised if the current class is asked to 

39 perform an operation where the state conditions are not 

40 satisfied (yet). E.g. no data loaded. 

41 """ 

42 pass 

43 

44 

45class MissConfigurationException(RuntimeError): 

46 """ 

47 Exception to be raised if the given configuration has internal 

48 conflicts or is missing mandatory information 

49 """ 

50 pass