:orphan:
.. _s_11PytoRuntime9ExceptionV:
``Exception``
=============
Represents a Python exception.
.. raw:: html
.. rubric:: Declaration
.. raw:: html
.. rubric:: Initializers
.. raw:: html
.. toctree::
:maxdepth: 1
s_11PytoRuntime9ExceptionV6object9tracebackAcA6ObjectC_AA9TracebackVSgtKcfc
.. raw:: html
Initializes a Python exception from a Python exception object.
.. raw:: html
.. toctree::
:maxdepth: 1
s_11PytoRuntime9ExceptionV4type4args9tracebackAcA6ObjectC_SayAHGAA9TracebackVSgtKcfc
.. raw:: html
Initializes a Python exception.
.. rubric:: Properties
.. raw:: html
.. toctree::
:maxdepth: 1
s_11PytoRuntime9ExceptionV4argsSayAA6ObjectCGvp
.. raw:: html
The exception’s args.
.. raw:: html
.. toctree::
:maxdepth: 1
s_11PytoRuntime9ExceptionV6objectAA6ObjectCvp
.. raw:: html
The actual Python exception instance.
.. raw:: html
.. toctree::
:maxdepth: 1
s_11PytoRuntime9ExceptionV9tracebackAA9TracebackVSgvp
.. raw:: html
An optional :swift:symbol:`PytoRuntime.Traceback`. This is ``nil`` when using Swift object wrappers.
.. raw:: html
.. toctree::
:maxdepth: 1
s_11PytoRuntime9ExceptionV4typeAA6ObjectCvp
.. raw:: html
The exception type.
.. rubric:: Functions
.. raw:: html
.. toctree::
:maxdepth: 1
s_11PytoRuntime9ExceptionV4with9tracebackAcA9TracebackVSg_tF
.. raw:: html
Initializes a new exception with the given traceback.
.. rubric:: Static Functions
.. raw:: html
.. toctree::
:maxdepth: 1
s_11PytoRuntime9ExceptionV9traceback4fromAA9TracebackVSgAA6ObjectC_tKFZ
.. raw:: html
Computes a traceback from an exception.
.. rubric:: Conforms to
- ``LocalizedError``