Exception: ElasticBeans::Command::Exec::ExecEnvironmentBusyError

Inherits:
Error
  • Object
show all
Defined in:
lib/elastic_beans/command/exec.rb

Instance Method Summary collapse

Constructor Details

#initialize(timeout:) ⇒ ExecEnvironmentBusyError

Returns a new instance of ExecEnvironmentBusyError.



181
182
183
# File 'lib/elastic_beans/command/exec.rb', line 181

def initialize(timeout:)
  @timeout = timeout
end

Instance Method Details

#messageObject



185
186
187
188
189
190
# File 'lib/elastic_beans/command/exec.rb', line 185

def message
  <<-MESSAGE
The exec environment is too busy to reserve an instance for this interactive session (we waited #{@timeout} seconds).
Please scale it up and try again.
  MESSAGE
end