Coverage for src/hdmf/build/warnings.py: 100%
12 statements
« prev ^ index » next coverage.py v7.2.5, created at 2023-07-25 05:02 +0000
« prev ^ index » next coverage.py v7.2.5, created at 2023-07-25 05:02 +0000
1"""Module for build warnings"""
4class BuildWarning(UserWarning):
5 """
6 Base class for warnings that are raised during the building of a container.
7 """
8 pass
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
18class MissingRequiredBuildWarning(BuildWarning):
19 """
20 Raised when a required field is missing.
21 """
22 pass
25class MissingRequiredWarning(MissingRequiredBuildWarning):
26 """
27 Raised when a required field is missing.
28 """
29 pass
32class OrphanContainerWarning(BuildWarning):
33 """
34 Raised when a container is built without a parent.
35 """
36 pass
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