Exception: Spud::NotFoundError
- Inherits:
-
RequestError
- Object
- StandardError
- RequestError
- Spud::NotFoundError
- Defined in:
- lib/spud_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.
35 36 37 38 39 |
# File 'lib/spud_core/errors.rb', line 35 def initialize(item_or_opts='page', opts={}) @code = 404 @i18n = 'not_found' super(item_or_opts, opts) end |