Exception

Represents a Python exception.

Declaration

struct Exception

Initializers

Initializes a Python exception from a Python exception object.

Initializes a Python exception.

Properties

The exception’s args.

The actual Python exception instance.

An optional Traceback. This is nil when using Swift object wrappers.

The exception type.

Functions

Initializes a new exception with the given traceback.

Static Functions

Computes a traceback from an exception.

Conforms to

  • LocalizedError