scikitplot.exceptions#
Custom warnings and errors used across scikit-plots.
This module contains errors/exceptions and warnings of general use for scikit-plots. Exceptions that are specific to a given subpackage should not be here, but rather in the particular subpackage.
The builtin warning hierarchy is:
Warning
├── DeprecationWarning ← base of ScikitplotDeprecationWarning
├── PendingDeprecationWarning ← base of ScikitplotPendingDeprecationWarning
└── UserWarning ← base of ScikitplotUserWarning
Notes
Developer notes
Do not import this module from
__init__.pybefore it has been fully bootstrapped. The_is_loadedguard prevents accidental re-import, which would create duplicate class identities and breakisinstancechecks across reload boundaries.error_codeinScikitplotExceptionand its subclasses may be either anint(legacy convention) or astrsentinel (e.g."NOT_FOUND","INVALID_STATE"). Both forms are preserved verbatim in the JSON payload; callers must not assume a particular type.__getattr__at module scope handles the deprecatedErfaError/ErfaWarningaliases.stacklevel=2ensures the warning frame points at the caller rather than at the__getattr__body itself.
Module deprecation warning. |
|
Generic exception thrown to surface failure information about external-facing operations. |
|
Visible deprecation warning. |