fluke/devops-service/exceptions/bootstrap_error.rb
Tim Lianov 03dc3d8d99 v3
2018-04-04 22:44:39 +03:00

22 lines
479 B
Ruby

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