Exception: Krane::RestartTask::RestartAPIError

Inherits:
FatalRestartError show all
Defined in:
lib/krane/restart_task.rb

Instance Method Summary collapse

Constructor Details

#initialize(deployment_name, response) ⇒ RestartAPIError

Returns a new instance of RestartAPIError.



15
16
17
18
19
# File 'lib/krane/restart_task.rb', line 15

def initialize(deployment_name, response)
  super("Failed to restart #{deployment_name}. " \
      "API returned non-200 response code (#{response.code})\n" \
      "Response:\n#{response.body}")
end