class documentation
class _StagedLoopExceptionHandler: (source)
Constructor: _StagedLoopExceptionHandler(handler, previous_handler)
Identify one borrowed-loop assignment while installation can fail.
A distinct forwarding callable is installed for every assignment. Its identity prevents an interrupted assignment from mistaking a newer use of the same public handler for its own. A successful installation releases the predecessor, so repeated SDK construction cannot retain old handlers.
| Parameters | |
| handler | Public handler requested by this constructor. |
| previous | Handler installed before this constructor. |
| Method | __call__ |
Forward a diagnostic according to the transaction's current state. |
| Method | __init__ |
Initialize a pending forwarding assignment. |
| Method | commit |
Release rollback state after successful installation. |
| Method | restorable |
Return the preceding handler without flattening a live proxy. |
| Method | rollback |
Mark this assignment for removal from a predecessor chain. |
| Instance Variable | handler |
Undocumented |
| Instance Variable | _state |
Undocumented |
| Instance Variable | _state |
Undocumented |
def __init__(self, handler:
LoopExceptionHandler, previous_handler: _StoredLoopExceptionHandler | None):
(source)
¶
Initialize a pending forwarding assignment.