Exception: Lackie::AwaitError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/lackie/remote_control.rb

Instance Method Summary collapse

Constructor Details

#initialize(expression, result) ⇒ AwaitError

Returns a new instance of AwaitError.



89
90
91
# File 'lib/lackie/remote_control.rb', line 89

def initialize(expression, result)
  @expression, @result = expression, result
end

Instance Method Details

#messageObject



93
94
95
96
97
# File 'lib/lackie/remote_control.rb', line 93

def message
  "Timed out awaiting the result of expression:\n" +
  "#{@expression}\n" +
  "The last result was:\n#{@result}"
end