Exception: ClaudeAgentSDK::FiberBoundary::InlineCancellation Private
- Inherits:
-
Exception
- Object
- Exception
- ClaudeAgentSDK::FiberBoundary::InlineCancellation
- Defined in:
- lib/claude_agent_sdk/fiber_boundary.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Cancellation injected into INLINE user callbacks by timeout
enforcement (hook timeouts under scheduling: :inline; store-adapter
timeouts for adapters declaring callback_scheduling :inline) — user
code should let it propagate. Deliberately
NOT a StandardError: the exception is raised inside user code at a
suspension point, and a callback's ordinary rescue StandardError
must not be able to swallow the cancellation and convert an expired
hook into a success (Async::TimeoutError is a StandardError, so it
cannot be injected directly). The SDK translates it back to
Async::TimeoutError once control returns from user code.