CapabilityError#
- exception scikitplot.cleanprompt.CapabilityError(message, tier, status, install_hint=None)[source]#
An optional tier is not usable in this environment.
- Parameters:
- messagestr
Human-readable description, including the actionable install command.
- tierstr
The tier name, for example
"ner".- statusstr
A
CapabilityStatusvalue.- install_hintstr, optional
The exact command that would make the tier available.
- Parameters:
- Return type:
None
Notes
Developer notes. This subclasses
ImportErrorso that existingexcept ImportErrorfallbacks around optional features keep working, whileexcept CapabilityErrorgives the richer report.statuspreserves theBROKENversusABSENTdistinction; collapsing them makes an installed but unusable dependency indistinguishable from a missing one.