Class: ForestAdminAgent::Services::ApprovalSelectionTooLargeError

Inherits:
UnprocessableError
  • Object
show all
Defined in:
lib/forest_admin_agent/services/smart_action_checker.rb

Instance Method Summary collapse

Constructor Details

#initialize(max) ⇒ ApprovalSelectionTooLargeError

Returns a new instance of ApprovalSelectionTooLargeError.



24
25
26
27
28
29
# File 'lib/forest_admin_agent/services/smart_action_checker.rb', line 24

def initialize(max)
  super(
    "This action requires approval and cannot be triggered on more than #{max} records at once. " \
    'Please refine your selection.'
  )
end