Exception: Caprese::ActionForbiddenError

Inherits:
Error
  • Object
show all
Defined in:
lib/caprese/errors.rb

Overview

Thrown when an action that is forbidden was attempted

Instance Attribute Summary

Attributes inherited from Error

#code, #field, #header

Instance Method Summary collapse

Methods inherited from Error

#as_json, #full_message, #i18n_scope, #t, #with_header

Constructor Details

#initializeActionForbiddenError

Returns a new instance of ActionForbiddenError.



53
54
55
56
# File 'lib/caprese/errors.rb', line 53

def initialize
  super code: :forbidden
  @header = { status: :forbidden }
end