Class: ForestLiana::Ability::Exceptions::TriggerForbidden

Inherits:
Errors::ExpectedError
  • Object
show all
Defined in:
app/services/forest_liana/ability/exceptions/trigger_forbidden.rb

Instance Method Summary collapse

Constructor Details

#initializeTriggerForbidden

Returns a new instance of TriggerForbidden.



5
6
7
8
9
10
11
12
# File 'app/services/forest_liana/ability/exceptions/trigger_forbidden.rb', line 5

def initialize
  super(
    403,
        :forbidden,
        'You don\'t have the permission to trigger this action',
        'CustomActionTriggerForbiddenError'
  )
end