Exception: Spud::UnauthorizedError
- Inherits:
-
RequestError
- Object
- StandardError
- RequestError
- Spud::UnauthorizedError
- 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 = {}) ⇒ UnauthorizedError
constructor
A new instance of UnauthorizedError.
Constructor Details
#initialize(item_or_opts = 'page', opts = {}) ⇒ UnauthorizedError
Returns a new instance of UnauthorizedError.
43 44 45 46 47 |
# File 'lib/spud_core/errors.rb', line 43 def initialize(item_or_opts='page', opts={}) @code = 401 @i18n = 'unauthorized' super(item_or_opts, opts) end |