Exception: Whoosh::Errors::ForbiddenError

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 = "Forbidden") ⇒ ForbiddenError

Returns a new instance of ForbiddenError.



47
48
49
# File 'lib/whoosh/errors.rb', line 47

def initialize(message = "Forbidden")
  super(message, status: 403, error_type: "forbidden")
end