Exception: Katello::Errors::MissingDebDistributionError

Inherits:
StandardError
  • Object
show all
Defined in:
app/lib/katello/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(repo_name, version_href) ⇒ MissingDebDistributionError

Returns a new instance of MissingDebDistributionError.



189
190
191
192
193
194
195
# File 'app/lib/katello/errors.rb', line 189

def initialize(repo_name, version_href)
  @repo_name, @version_href = repo_name, version_href
  message = _(
    "The Pulp repo version '%{version}' for 'deb' repository '%{name}' must contain at least one distribution!"
  ) % { name: repo_name, version: version_href }
  super(message)
end

Instance Attribute Details

#repo_nameObject (readonly)

Returns the value of attribute repo_name.



187
188
189
# File 'app/lib/katello/errors.rb', line 187

def repo_name
  @repo_name
end

#version_hrefObject (readonly)

Returns the value of attribute version_href.



187
188
189
# File 'app/lib/katello/errors.rb', line 187

def version_href
  @version_href
end