fluke/devops-service/exceptions/bootstrap_error.rb

22 lines
479 B
Ruby
Raw Permalink Normal View History

2018-04-04 22:44:39 +03:00
require_relative "server_operation_error"
module Devops
module Exception
class BootstrapError < ServerOperationError
def error_code
Devops::Executor::ServerOperationResult.code_of_reason(:server_bootstrap_fail)
end
def operation_type
Devops::Model::Server::OperationType::BOOTSTRAP
end
def error_message msg
"Failed while bootstraping server\nBootstraping operation result was: #{msg}"
end
end
end
end