Exception: Ask::Tools::Repl::Kernel::TimeoutError

Inherits:
Error
  • Object
show all
Defined in:
lib/ask/tools/shell/repl.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(timeout) ⇒ TimeoutError

Returns a new instance of TimeoutError.



173
174
175
176
# File 'lib/ask/tools/shell/repl.rb', line 173

def initialize(timeout)
  @timeout = timeout
  super("evaluation exceeded #{timeout}s")
end

Instance Attribute Details

#timeoutObject (readonly)

Returns the value of attribute timeout.



171
172
173
# File 'lib/ask/tools/shell/repl.rb', line 171

def timeout
  @timeout
end