Exception: TbCore::NotFoundError
- Inherits:
-
RequestError
- Object
- StandardError
- RequestError
- TbCore::NotFoundError
- Defined in:
- lib/tb_core/errors.rb
Instance Attribute Summary
Attributes inherited from RequestError
#code, #item, #request_url, #template, #title
Instance Method Summary collapse
-
#initialize(item_or_opts = 'page', opts = {}) ⇒ NotFoundError
constructor
A new instance of NotFoundError.
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 |