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 CapabilityStatus value.

install_hintstr, optional

The exact command that would make the tier available.

Parameters:
  • message (str)

  • tier (str)

  • status (str)

  • install_hint (str | None)

Return type:

None

Notes

Developer notes. This subclasses ImportError so that existing except ImportError fallbacks around optional features keep working, while except CapabilityError gives the richer report. status preserves the BROKEN versus ABSENT distinction; collapsing them makes an installed but unusable dependency indistinguishable from a missing one.

Annotation:

Unrecognized objtype: exception

Parameters:
  • message (str)

  • tier (str)

  • status (str)

  • install_hint (str | None)

Return type:

None