Exception: Caprese::ActionForbiddenError
- Defined in:
- lib/caprese/errors.rb
Overview
Thrown when an action that is forbidden was attempted
Instance Attribute Summary
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize ⇒ ActionForbiddenError
constructor
A new instance of ActionForbiddenError.
Methods inherited from Error
#as_json, #full_message, #i18n_scope, #with_header
Constructor Details
#initialize ⇒ ActionForbiddenError
Returns a new instance of ActionForbiddenError.
69 70 71 72 |
# File 'lib/caprese/errors.rb', line 69 def initialize super code: :forbidden @header = { status: :forbidden } end |