Encapsulates an error of a multiparameter assignment.
Gets the target attribute of the assignment. @return [String]
Gets the exception raised on the assignment. @return [Exception]
Gets the assigned values. @return [Array]
Initializes a new instance of the {MultiparameterAssignmentError} class.
@param [String] attribute The target attribute of the assignment. @param [Array] values The assigned values. @param [Exception] exception The exception raised on the assignment.
# File lib/dm-rails/multiparameter_attributes.rb, line 24 def initialize(attribute, values, exception) super("Could not assign #{values.inspect} to #{attribute} (#{exception.message}).") @attribute = attribute @values = values @exception = exception end