Exception: Hermetic::TransportError

Inherits:
Error
  • Object
show all
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

Instance Method Summary collapse

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(message = nil, in_doubt: false)
  super(message)
  @in_doubt = in_doubt
end

Instance Attribute Details

#in_doubtObject (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

Returns:

  • (Boolean)


24
# File 'lib/hermetic/errors.rb', line 24

def in_doubt? = !!@in_doubt