class Chef::Exceptions::MissingRole
Attributes
Public Class Methods
Source
# File lib/chef/exceptions.rb, line 277 def initialize(message_or_expansion = NOT_PASSED) @expansion = nil case message_or_expansion when NOT_PASSED super() when String super when RunList::RunListExpansion @expansion = message_or_expansion missing_roles = @expansion.errors.join(", ") super("The expanded run list includes nonexistent roles: #{missing_roles}") end end
Calls superclass method