Class: ForestLiana::Ability::Exceptions::AccessDenied

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

Instance Method Summary collapse

Constructor Details

#initializeAccessDenied

Returns a new instance of AccessDenied.



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

def initialize
  super(
    403,
    :forbidden,
    'You don\'t have permission to access this resource',
    'AccessDenied'
  )
end