Exception: Insika::TimeoutError
- 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
-
#stage ⇒ Object
readonly
Returns the value of attribute stage.
Instance Method Summary collapse
-
#initialize(message = nil, stage: nil) ⇒ TimeoutError
constructor
A new instance of TimeoutError.
Constructor Details
#initialize(message = nil, stage: nil) ⇒ TimeoutError
Returns a new instance of TimeoutError.
99 100 101 102 |
# File 'lib/insika/errors.rb', line 99 def initialize( = nil, stage: nil) @stage = stage super( || "timeout at stage #{stage}") end |
Instance Attribute Details
#stage ⇒ Object (readonly)
Returns the value of attribute stage.
97 98 99 |
# File 'lib/insika/errors.rb', line 97 def stage @stage end |