class Chef::Exceptions::CookbookVersionSelection::InvalidRunListItems
Compound exception: In run_list expansion and resolution, run_list items referred to cookbooks that don’t exist and/or have no versions available.
Attributes
Public Class Methods
Source
# File lib/chef/exceptions.rb, line 376 def initialize(message, non_existent_cookbooks, cookbooks_with_no_matching_versions) super(message) @non_existent_cookbooks = non_existent_cookbooks @cookbooks_with_no_matching_versions = cookbooks_with_no_matching_versions end
Calls superclass method
Public Instance Methods
Source
# File lib/chef/exceptions.rb, line 383 def to_json(*a) result = { "message" => message, "non_existent_cookbooks" => non_existent_cookbooks, "cookbooks_with_no_versions" => cookbooks_with_no_matching_versions, } Chef::JSONCompat.to_json(result, *a) end