@_frozen
public enum PythonError : Error, Equatable

An error produced by a failable Python operation.

  • A Python runtime exception, produced by calling a Python function.

    Declaration

    case exception(PythonObject)
  • A failed call on a PythonObject. Reasons for failure include:

    • A non-callable Python object was called.
    • An incorrect number of arguments were provided to the callable Python object.
    • An invalid keyword argument was specified.

    Declaration

    case invalidCall(PythonObject)
  • A module import error.

    Declaration

    case invalidModule(String)
  • Declaration

    public var description: String { get }