Exception: Granite::Form::TooManyObjects

Inherits:
Error
  • Object
show all
Defined in:
lib/granite/form/errors.rb

Instance Method Summary collapse

Constructor Details

#initialize(limit, actual_size) ⇒ TooManyObjects

Returns a new instance of TooManyObjects.



37
38
39
# File 'lib/granite/form/errors.rb', line 37

def initialize(limit, actual_size)
  super("Maximum #{limit} objects are allowed. Got #{actual_size} objects instead.")
end