Exception: TbCore::NotFoundError

Inherits:
RequestError 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 = {}) ⇒ NotFoundError

Returns a new instance of NotFoundError.



36
37
38
39
40
# File 'lib/tb_core/errors.rb', line 36

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