Exception: KubernetesDeploy::RestartTask::RestartAPIError
- Inherits:
-
FatalRestartError
- Object
- StandardError
- FatalDeploymentError
- FatalRestartError
- KubernetesDeploy::RestartTask::RestartAPIError
- Defined in:
- lib/kubernetes-deploy/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.
13 14 15 16 17 |
# File 'lib/kubernetes-deploy/restart_task.rb', line 13 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 |