Exception: ActiveRecord::Import::ValueSetTooLargeError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/activerecord-import/value_sets_parser.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg = "Value set exceeds max size", size = 0) ⇒ ValueSetTooLargeError

Returns a new instance of ValueSetTooLargeError.



9
10
11
12
# File 'lib/activerecord-import/value_sets_parser.rb', line 9

def initialize(msg = "Value set exceeds max size", size = 0)
  @size = size
  super(msg)
end

Instance Attribute Details

#sizeObject (readonly)

Returns the value of attribute size.



7
8
9
# File 'lib/activerecord-import/value_sets_parser.rb', line 7

def size
  @size
end