Exception: TbCore::UnauthorizedError

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 = {}) ⇒ UnauthorizedError

Returns a new instance of UnauthorizedError.



44
45
46
47
48
# File 'lib/tb_core/errors.rb', line 44

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