Coverage for src/hdmf/build/warnings.py: 100%

12 statements  

« prev     ^ index     » next       coverage.py v7.2.5, created at 2023-07-10 23:48 +0000

1"""Module for build warnings""" 

2 

3 

4class BuildWarning(UserWarning): 

5 """ 

6 Base class for warnings that are raised during the building of a container. 

7 """ 

8 pass 

9 

10 

11class IncorrectQuantityBuildWarning(BuildWarning): 

12 """ 

13 Raised when a container field contains a number of groups/datasets/links that is not allowed by the spec. 

14 """ 

15 pass 

16 

17 

18class MissingRequiredBuildWarning(BuildWarning): 

19 """ 

20 Raised when a required field is missing. 

21 """ 

22 pass 

23 

24 

25class MissingRequiredWarning(MissingRequiredBuildWarning): 

26 """ 

27 Raised when a required field is missing. 

28 """ 

29 pass 

30 

31 

32class OrphanContainerWarning(BuildWarning): 

33 """ 

34 Raised when a container is built without a parent. 

35 """ 

36 pass 

37 

38 

39class DtypeConversionWarning(UserWarning): 

40 """ 

41 Raised when a value is converted to a different data type in order to match the specification. 

42 """ 

43 pass