exception documentation
class _DeadlockError(Exception): (source)
Constructor: _DeadlockError(message, replacement_tb)
Exception class for deadlocks. Contains functionality to swap the default traceback for another.
Class Method | from |
Undocumented |
Method | __init__ |
Create a new DeadlockError, with message message and optionally a traceback replacement_tb to be swapped in later. |
Method | swap |
Swap the current traceback for the replacement passed during construction. Used to work around Python adding the current frame to the stack trace. |
Instance Variable | __traceback__ |
Undocumented |
Static Method | _gen |
Take a thread id and construct a stack trace. |
Instance Variable | _new |
Undocumented |
@classmethod
def from_deadlocked_workflow(cls, workflow:
def from_deadlocked_workflow(cls, workflow:
WorkflowInstance
, timeout: Optional[ int]
):
(source)
¶
Undocumented
Create a new DeadlockError, with message message
and optionally a traceback replacement_tb
to be swapped in later.
Parameters | |
message:str | Message to be presented through exception. |
replacementOptional[ | Optional TracebackType to be swapped later. |
Swap the current traceback for the replacement passed during construction. Used to work around Python adding the current frame to the stack trace.
Returns | |
None |
Take a thread id and construct a stack trace.
Returns | |
Optional[ | <Optional[TracebackType]> the traceback that was constructed, None if the thread could not be found. |