Coverage for pySDC/core/Errors.py: 100%

9 statements  

« prev     ^ index     » next       coverage.py v7.5.0, created at 2024-04-29 09:02 +0000

1class DataError(Exception): 

2 """ 

3 Error Class handling/indicating problems with data types 

4 """ 

5 

6 pass 

7 

8 

9class ParameterError(Exception): 

10 """ 

11 Error Class handling/indicating problems with parameters (mostly within dictionaries) 

12 """ 

13 

14 pass 

15 

16 

17class UnlockError(Exception): 

18 """ 

19 Error class handling/indicating unlocked levels 

20 """ 

21 

22 pass 

23 

24 

25class CollocationError(Exception): 

26 """ 

27 Error class handling/indicating problems with the collocation 

28 """ 

29 

30 pass 

31 

32 

33class ConvergenceError(Exception): 

34 """ 

35 Error class handling/indicating problems with convergence 

36 """ 

37 

38 pass 

39 

40 

41class TransferError(Exception): 

42 """ 

43 Error class handling/indicating problems with the transfer processes 

44 """ 

45 

46 pass 

47 

48 

49class CommunicationError(Exception): 

50 """ 

51 Error class handling/indicating problems with the communication 

52 """ 

53 

54 pass 

55 

56 

57class ControllerError(Exception): 

58 """ 

59 Error class handling/indicating problems with the controller 

60 """ 

61 

62 pass 

63 

64 

65class ProblemError(Exception): 

66 """ 

67 Error class handling/indicating problems with the problem classes 

68 """ 

69 

70 pass 

71 

72 

73class ReadOnlyError(Exception): # pragma: no cover 

74 """ 

75 Exception thrown when setting a read-only class attribute 

76 """ 

77 

78 def __init__(self, name): 

79 super().__init__(f'cannot set read-only attribute {name}')