Exception: Common::Exceptions::UnexpectedForbidden

Inherits:
Forbidden show all
Defined in:
lib/common/exceptions/unexpected_forbidden.rb

Overview

Forbidden is excluded from Sentry logging. This exception is a duplicate that IS NOT excluded from Sentry logging

Instance Method Summary collapse

Methods inherited from Forbidden

#errors, #initialize

Methods inherited from BaseError

#errors, #i18n_data, #i18n_field, #i18n_interpolated, #log_to_sentry?, #message, #sentry_type, #status_code

Constructor Details

This class inherits a constructor from Common::Exceptions::Forbidden

Instance Method Details

#i18n_keyObject



10
11
12
# File 'lib/common/exceptions/unexpected_forbidden.rb', line 10

def i18n_key
  "common.exceptions.#{self.class.superclass.name.split('::').last.underscore}"
end