Raise ConfigurationError with the given key name.
(key: str, suggestions: Optional[list[str]] = None)
| 174 | |
| 175 | |
| 176 | def raise_config_error(key: str, suggestions: Optional[list[str]] = None) -> NoReturn: |
| 177 | """Raise ConfigurationError with the given key name.""" |
| 178 | msg = f"Unknown option: {key}." |
| 179 | if suggestions: |
| 180 | msg += f" Did you mean one of ({', '.join(suggestions)}) or maybe a camelCase version of one? Refer to docstring." |
| 181 | raise ConfigurationError(msg) |
| 182 | |
| 183 | |
| 184 | # Mapping of URI uuid representation options to valid subtypes. |
no test coverage detected