Exception: Whoosh::Errors::UnauthorizedError
- Inherits:
-
HttpError
- Object
- StandardError
- WhooshError
- HttpError
- Whoosh::Errors::UnauthorizedError
- Defined in:
- lib/whoosh/errors.rb
Instance Attribute Summary
Attributes inherited from HttpError
Instance Method Summary collapse
-
#initialize(message = "Unauthorized") ⇒ UnauthorizedError
constructor
A new instance of UnauthorizedError.
Methods inherited from HttpError
Constructor Details
#initialize(message = "Unauthorized") ⇒ UnauthorizedError
Returns a new instance of UnauthorizedError.
41 42 43 |
# File 'lib/whoosh/errors.rb', line 41 def initialize( = "Unauthorized") super(, status: 401, error_type: "unauthorized") end |