Exception: Hermetic::TransportError
- Defined in:
- lib/hermetic/errors.rb
Overview
The wire failed (socket error, missing binary) — distinct from the guest
failing, which is a non-zero Result, not an exception. in_doubt is true
when the run may have executed before the wire failed — the remote/hosted
in-doubt window (spec §7 risk 2). Never blindly retry an in-doubt run:
replay the same idempotency key against a deduping executor, or escalate.
Instance Attribute Summary collapse
-
#in_doubt ⇒ Object
readonly
Returns the value of attribute in_doubt.
Instance Method Summary collapse
- #in_doubt? ⇒ Boolean
-
#initialize(message = nil, in_doubt: false) ⇒ TransportError
constructor
A new instance of TransportError.
Constructor Details
#initialize(message = nil, in_doubt: false) ⇒ TransportError
Returns a new instance of TransportError.
19 20 21 22 |
# File 'lib/hermetic/errors.rb', line 19 def initialize( = nil, in_doubt: false) super() @in_doubt = in_doubt end |
Instance Attribute Details
#in_doubt ⇒ Object (readonly)
Returns the value of attribute in_doubt.
17 18 19 |
# File 'lib/hermetic/errors.rb', line 17 def in_doubt @in_doubt end |
Instance Method Details
#in_doubt? ⇒ Boolean
24 |
# File 'lib/hermetic/errors.rb', line 24 def in_doubt? = !!@in_doubt |