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, #t

Instance Method Summary collapse

Methods inherited from Error

#as_json, #full_message, #i18n_scope, #with_header

Constructor Details

#initializeActionForbiddenError

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