EmptyListError(item_name)
Source¶
Bases: NumdaplotError
Raised when a setting needs at least one element, such as the conditions of a Filter.
Added in version 0.1.0
Parameters:
-
item_name(str)What the list holds, such as
condition.
Attributes:
-
item_nameWhat the list holds, such as
condition.
Examples:
import numdaplot as ndp
try:
ndp.Filter(conditions=[])
except ndp.EmptyListError as error:
print(error)
# Expected at least one condition, got an empty list.