input4mips_validation.cvs.exceptions#
input4mips_validation.cvs.exceptions
#
Exceptions related to CVs
ValueInconsistentWithCVsError
#
Bases: ValueError
Raised when a value is inconsistent with the value expected by the CVs
Source code in src/input4mips_validation/cvs/exceptions.py
__init__(value, expected_value, cv_component, cv_component_dependent_on, cv_entry_dependenty_component)
#
Initialise the error
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
value
|
str
|
The invalid value |
required |
expected_value
|
str
|
The value expected by the CVs |
required |
cv_component
|
str
|
The component of the CVs being considered |
required |
cv_component_dependent_on
|
str
|
The component of the CVs that the component being considered is dependent on |
required |
cv_entry_dependenty_component
|
Any
|
The entry that defines the value, as it is in the CVs |
required |
Source code in src/input4mips_validation/cvs/exceptions.py
ValueNotAllowedByCVsError
#
Bases: ValueError
Raised when a value is not in the values allowed by the CVs
Source code in src/input4mips_validation/cvs/exceptions.py
__init__(value, cv_component, cv_allowed_values, cv_entries)
#
Initialise the error
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
value
|
str
|
The invalid value |
required |
cv_component
|
str
|
The component of the CVs being considered |
required |
cv_allowed_values
|
Collection[str]
|
The values that the attribute can have, according to the CVs |
required |
cv_entries
|
Collection[Any]
|
The full entries as they are in the CVs |
required |