traits_futures.exception_handling module

Support for transferring exception information from a background task.

traits_futures.exception_handling.marshal_exception(exception)[source]

Turn exception details into something that can be safely transmitted across thread / process boundaries.

Parameters

exception (BaseException) – The exception instance to be marshalled

Returns

exception_type, exception_value, exception_traceback – Strings representing the exception type, value and formatted traceback.

Return type

str