Exception: Krane::RestartTask::RestartAPIError
- Inherits:
-
FatalRestartError
- Object
- StandardError
- FatalDeploymentError
- FatalRestartError
- Krane::RestartTask::RestartAPIError
- Defined in:
- lib/krane/restart_task.rb
Instance Method Summary collapse
-
#initialize(deployment_name, response) ⇒ RestartAPIError
constructor
A new instance of RestartAPIError.
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 |