input4mips_validation.exceptions#
input4mips_validation.exceptions
#
Exceptions
NonUniqueError
#
Bases: ValueError
Raised when a collection of values are not unique, but they should be
Source code in src/input4mips_validation/exceptions.py
__init__(description, values)
#
Initialise the error
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
description
|
str
|
Description of the collection and the error This is used to make a more helpful error message. |
required |
values
|
Collection[Any]
|
Collection of values that contains non-unique values |
required |