:orphan: .. _s_11PytoRuntime9ExceptionV4with9tracebackAcA9TracebackVSg_tF: ``with(traceback:)`` ==================== Initializes a new exception with the given traceback. .. raw:: html .. rubric:: Declaration .. raw:: html
func with(
       traceback: Traceback?
   ) -> Exception
   
.. rubric:: Parameters - **traceback**: A :swift:symbol:`PytoRuntime.Traceback` value. .. rubric:: Returns A new exception with the traceback attached to it. .. rubric:: Discussion .. note:: This doesn’t affect the ``__traceback__`` attribute of the actual exception object.