Exception: TbCore::AccessDeniedError

Inherits:
RequestError
  • Object
show all
Defined in:
lib/tb_core/errors.rb

Instance Attribute Summary

Attributes inherited from RequestError

#code, #item, #request_url, #template, #title

Instance Method Summary collapse

Constructor Details

#initialize(item_or_opts = 'page', opts = {}) ⇒ AccessDeniedError

Returns a new instance of AccessDeniedError.



28
29
30
31
32
# File 'lib/tb_core/errors.rb', line 28

def initialize(item_or_opts='page', opts={})
  @code = 403
  @i18n = 'access_denied'
  super(item_or_opts, opts)
end