Parent

Methods

Rails::DataMapper::MultiparameterAssignmentError

Encapsulates an error of a multiparameter assignment.

Attributes

attribute[R]

Gets the target attribute of the assignment. @return [String]

exception[R]

Gets the exception raised on the assignment. @return [Exception]

values[R]

Gets the assigned values. @return [Array]

Public Class Methods

new(attribute, values, exception) click to toggle source

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

[Validate]

Generated with the Darkfish Rdoc Generator 2.