errors.InvalidSettingError
A setting has a value it does not allow.
Usage
errors.InvalidSettingError(
setting,
value,
allowed,
*,
source,
sources,
)Raised when the setting resolves, so the message names the source of the value.
Methods
| Name | Description |
|---|---|
| __init__() | Name the setting, its value, the source of the value, and every source the setting reads. |
__init__()
Name the setting, its value, the source of the value, and every source the setting reads.
Usage
__init__(setting, value, allowed, *, source, sources)Parameters
allowed: Sequence[str] | str-
The allowed values, which the message quotes, or a phrase that describes a range.
source: str-
Where the value came from, as a phrase.
sources: str-
The sentence that names every source the setting reads, which
_Setting.sourcesbuilds.