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

#initialize(backtrace = nil) ⇒ AccessDenied

Returns a new instance of AccessDenied.



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

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