init(object:traceback:)

Initializes a Python exception from a Python exception object.

Declaration

init(
    object: Object,
    traceback: Traceback? = nil
) throws

Parameters

  • object: The Python exception instance.

  • traceback: An optional precomputed traceback.

Throws

An Exception occurred while parsing the exception object.