Exception: Whoosh::Errors::UnauthorizedError

Inherits:
HttpError show all
Defined in:
lib/whoosh/errors.rb

Instance Attribute Summary

Attributes inherited from HttpError

#error_type, #status

Instance Method Summary collapse

Methods inherited from HttpError

#to_h

Constructor Details

#initialize(message = "Unauthorized") ⇒ UnauthorizedError

Returns a new instance of UnauthorizedError.



41
42
43
# File 'lib/whoosh/errors.rb', line 41

def initialize(message = "Unauthorized")
  super(message, status: 401, error_type: "unauthorized")
end