class Chef::Exceptions::MissingRole
Attributes
expansion[R]
Public Class Methods
new(message_or_expansion = NOT_PASSED)
click to toggle source
Calls superclass method
# 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