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.
43 44 45 46 |
# File 'lib/insika/errors.rb', line 43 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.
41 42 43 |
# File 'lib/insika/errors.rb', line 41 def stage @stage end |