Module: Puppet::Pops::Binder::BinderIssues

Defined in:
lib/puppet/pops/binder/binder_issues.rb

Constant Summary collapse

MISSING_NAME =
issue :MISSING_NAME, :binding do
  "#{label.a_an_uc(binding)} with #{label.a_an(semantic)} has no name"
end
MISSING_KEY =
issue :MISSING_KEY, :binding do
  "#{label.a_an_uc(binding)} with #{label.a_an(semantic)} has no key"
end
MISSING_VALUE =
issue :MISSING_VALUE, :binding do
  "#{label.a_an_uc(binding)} with #{label.a_an(semantic)} has no value"
end
MISSING_EXPRESSION =
issue :MISSING_EXPRESSION, :binding do
  "#{label.a_an_uc(binding)} with #{label.a_an(semantic)} has no expression"
end
MISSING_CLASS_NAME =
issue :MISSING_CLASS_NAME, :binding do
  "#{label.a_an_uc(binding)} with #{label.a_an(semantic)} has no class name"
end
CACHED_PRODUCER_MISSING_PRODUCER =
issue :PRODUCER_MISSING_PRODUCER, :binding do
  "#{label.a_an_uc(binding)} with #{label.a_an(semantic)} has no producer"
end
INCOMPATIBLE_TYPE =
issue :INCOMPATIBLE_TYPE, :binding, :expected_type, :actual_type do
  "#{label.a_an_uc(binding)} with #{label.a_an(semantic)} has an incompatible type: expected #{label.a_an(expected_type)}, but got #{label.a_an(actual_type)}."
end
MULTIBIND_INCOMPATIBLE_TYPE =
issue :MULTIBIND_INCOMPATIBLE_TYPE, :binding, :actual_type do
  "#{label.a_an_uc(binding)} with #{label.a_an(semantic)} cannot bind #{label.a_an(actual_type)} value"
end
MODEL_OBJECT_IS_UNBOUND =
issue :MODEL_OBJECT_IS_UNBOUND do
  "#{label.a_an_uc(semantic)} is not contained in a binding"
end
MISSING_PRODUCER =
issue :MISSING_PRODUCER do
  "#{label.a_an_uc(semantic)} has no producer"
end
MISSING_TYPE =
issue :MISSING_TYPE do
  "#{label.a_an_uc(semantic)} has no type"
end
MULTIBIND_NOT_COLLECTION_PRODUCER =
issue :MULTIBIND_NOT_COLLECTION_PRODUCER, :actual_producer do
  "#{label.a_an_uc(semantic)} must have a MultibindProducerDescriptor, but got: #{label.a_an(actual_producer)}"
end
MULTIBIND_TYPE_ERROR =
issue :MULTIBIND_TYPE_ERROR, :actual_type do
  "#{label.a_an_uc(semantic)} is expected to bind a collection type, but got: #{label.a_an(actual_type)}."
end
MISSING_BINDINGS =
issue :MISSING_BINDINGS do
  "#{label.a_an_uc(semantic)} has zero bindings"
end
MISSING_BINDINGS_NAME =
issue :MISSING_BINDINGS_NAME do
  "#{label.a_an_uc(semantic)} has no name"
end
MISSING_PREDICATES =
issue :MISSING_PREDICATES do
  "#{label.a_an_uc(semantic)} has zero predicates"
end
MISSING_LAYERS =
issue :MISSING_LAYERS do
  "#{label.a_an_uc(semantic)} has zero layers"
end
MISSING_LAYER_NAME =
issue :MISSING_LAYER_NAME do
  "#{label.a_an_uc(semantic)} has a layer without name"
end
MISSING_BINDINGS_IN_LAYER =
issue :MISSING_BINDINGS_IN_LAYER, :layer do
  "#{label.a_an_uc(semantic)} has zero bindings in #{label.label(layer)}"
end

Class Method Summary collapse

Class Method Details

.hard_issue(issue_code, *args, &block) ⇒ Object



19
20
21
# File 'lib/puppet/pops/binder/binder_issues.rb', line 19

def self.hard_issue(issue_code, *args, &block)
  Puppet::Pops::Issues.hard_issue(issue_code, *args, &block)
end

.issue(issue_code, *args, &block) ⇒ Object



14
15
16
# File 'lib/puppet/pops/binder/binder_issues.rb', line 14

def self.issue (issue_code, *args, &block)
  Puppet::Pops::Issues.issue(issue_code, *args, &block)
end