Exception: Shaf::Errors::ForbiddenError
- Inherits:
-
ServerError
- Object
- StandardError
- Shaf::Error
- ServerError
- Shaf::Errors::ForbiddenError
- Defined in:
- lib/shaf/errors.rb
Instance Attribute Summary
Attributes inherited from ServerError
Instance Method Summary collapse
- #http_status ⇒ Object
-
#initialize(msg = nil) ⇒ ForbiddenError
constructor
A new instance of ForbiddenError.
Constructor Details
#initialize(msg = nil) ⇒ ForbiddenError
Returns a new instance of ForbiddenError.
46 47 48 49 |
# File 'lib/shaf/errors.rb', line 46 def initialize(msg = nil) msg ||= "User is not allowed to perform this action" super(msg, code: "FORBIDDEN", title: "User not allowed") end |
Instance Method Details
#http_status ⇒ Object
42 43 44 |
# File 'lib/shaf/errors.rb', line 42 def http_status 403 end |