Exception: Spud::AccessDeniedError

Inherits:
RequestError show all
Defined in:
lib/spud_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.



27
28
29
30
31
# File 'lib/spud_core/errors.rb', line 27

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