Coverage for fio_wrapper/exceptions.py: 100%

21 statements  

« prev     ^ index     » next       coverage.py v7.3.2, created at 2023-11-16 11:32 +0100

1# Generic 

2 

3 

4class EndpointNotImplemented(Exception): 

5 """Endpoint is not implemented in fio_wrapper""" 

6 

7 

8class NoAPIKeyProvided(Exception): 

9 """No FIO API Key was provided, but endpoint requires key""" 

10 

11 

12class NotAuthenticated(Exception): 

13 """FIO returned failed authentication""" 

14 

15 

16class UnknownFIOResponse(Exception): 

17 """FIO returned a unknown response""" 

18 

19 

20class UnknownConfig(Exception): 

21 """Configuration not available""" 

22 

23 

24# Material 

25 

26 

27class MaterialTickerInvalid(Exception): 

28 """Invalid Material Ticker provided""" 

29 

30 

31class MaterialTickerNotFound(Exception): 

32 """Material Ticker not found""" 

33 

34 

35class MaterialCategoryNotFound(Exception): 

36 """Material Category not found""" 

37 

38 

39# Exchange 

40 

41 

42class ExchangeTickerInvalid(Exception): 

43 """Exchange ticker invalid""" 

44 

45 

46class ExchangeTickerNotFound(Exception): 

47 """Exchange ticker not found""" 

48 

49 

50class CompanyCodeInvalid(Exception): 

51 """Company code invalid""" 

52 

53 

54# Building 

55 

56 

57class BuildingTickerNotFound(Exception): 

58 """Building ticker not found""" 

59 

60 

61# Planet 

62 

63 

64class PlanetNotFound(Exception): 

65 """Planet not found""" 

66 

67 

68class PlanetSearchMaterialsInvalid(Exception): 

69 """Planet search material ticker provided invalid""" 

70 

71 

72class PlanetSearchDistanceChecksInvalid(Exception): 

73 """Planet search invalid distance checks""" 

74 

75 

76class PlanetSearchInvalidRequest(Exception): 

77 """Planet search request invalid""" 

78 

79 

80# LocalMarket 

81 

82 

83class InvalidAdType(Exception): 

84 """Ad type invalid""" 

85 

86 

87class PlanetOrAdsNotFound(Exception): 

88 """Planet or ads not found""" 

89 

90 

91class CompanyOrAdsNotFound(Exception): 

92 """Company or ads not found""" 

93 

94 

95# Sites 

96 

97 

98class NoSiteData(Exception): 

99 """No site data found""" 

100 

101 

102# Storage 

103 

104 

105class NoStorageData(Exception): 

106 """No storage data found"""