PythonError

public enum PythonError : Error, Equatable
extension PythonError : CustomStringConvertible

An error produced by a failable Python operation.

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

    Declaration

    case exception(PythonObject, traceback: 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 }