lib/kubernetes-deploy/errors.rb in kubernetes-deploy-0.19.0 vs lib/kubernetes-deploy/errors.rb in kubernetes-deploy-0.20.0

- old
+ new

@@ -1,9 +1,18 @@ # frozen_string_literal: true module KubernetesDeploy class FatalDeploymentError < StandardError; end class KubectlError < StandardError; end + class InvalidTemplateError < FatalDeploymentError + attr_reader :filename, :content + def initialize(err, filename:, content: nil) + @filename = filename + @content = content + super(err) + end + end + class NamespaceNotFoundError < FatalDeploymentError def initialize(name, context) super("Namespace `#{name}` not found in context `#{context}`") end end