SecurityError#

exception scikitplot.cython.SecurityError(message, *, field=None)[source]#

Raised when a build input violates the active SecurityPolicy.

Inherits from ValueError so callers that catch ValueError continue to work without modification.

Parameters:
messagestr

Human-readable description of the violation.

fieldstr or None

Name of the build parameter that triggered the violation.

Parameters:
  • message (str)

  • field (str | None)

Return type:

None

Notes

Do NOT catch SecurityError generically and continue — treat it as a hard stop. The error message always describes what violated which rule so developers can fix inputs rather than silencing errors.

Annotation:

Unrecognized objtype: exception

Parameters:
  • message (str)

  • field (str | None)

Return type:

None