Exception: Insika::TimeoutError

Inherits:
Error
  • Object
show all
Defined in:
lib/insika/errors.rb

Overview

Stage timeout overflow. Inside the Insika namespace this constant shadows the stdlib ::Timeout::Error — reference it without :: in here (the contract forbids stdlib Timeout.timeout anyway).

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message = nil, stage: nil) ⇒ TimeoutError

Returns a new instance of TimeoutError.



43
44
45
46
# File 'lib/insika/errors.rb', line 43

def initialize(message = nil, stage: nil)
  @stage = stage
  super(message || "timeout at stage #{stage}")
end

Instance Attribute Details

#stageObject (readonly)

Returns the value of attribute stage.



41
42
43
# File 'lib/insika/errors.rb', line 41

def stage
  @stage
end