Class: Bolt::FutureTimeoutError

Inherits:
Error
  • Object
show all
Defined in:
lib/bolt/error.rb

Instance Method Summary collapse

Constructor Details

#initialize(name, timeout) ⇒ FutureTimeoutError

Returns a new instance of FutureTimeoutError.



109
110
111
112
113
114
115
# File 'lib/bolt/error.rb', line 109

def initialize(name, timeout)
  details = {
    'future' => name
  }
  message = "Future '#{name}' timed out after #{timeout} seconds."
  super(message, 'bolt/future-timeout-error', details)
end