LibTmux.Control.ScopeFailure exception (libtmux v0.1.3)

Copy Markdown View Source

A scoped callback finished, but connection cleanup was not proved.

primary preserves either {:return, value} or {:raise, kind, reason, stacktrace}. cleanup holds the separate structured cleanup error. Callback values stay in the calling process; this wrapper does not copy them through a bounded connection mailbox or discard them. See LibTmux.Control.with_connection/2 for the complete return contract.

Summary

Types

The callback's original value or caught exception, throw or exit with its stacktrace.

Both primary callback evidence and unproved cleanup; neither implies no command effects.

Types

primary(value)

@type primary(value) ::
  {:return, value} | {:raise, :error | :throw | :exit, term(), list()}

The callback's original value or caught exception, throw or exit with its stacktrace.

t(value)

@type t(value) :: %LibTmux.Control.ScopeFailure{
  __exception__: term(),
  cleanup: LibTmux.Error.t(),
  primary: primary(value)
}

Both primary callback evidence and unproved cleanup; neither implies no command effects.