Exception: Commons::Errors::Unauthorized
- Defined in:
- lib/commons/errors/unauthorized.rb
Instance Attribute Summary
Attributes inherited from ErrorBase
#backtrace, #code, #detail, #message, #meta, #title
Instance Method Summary collapse
-
#initialize(message = nil, backtrace = nil, title: nil, code: nil, detail: nil, meta: {}) ⇒ Unauthorized
constructor
A new instance of Unauthorized.
Methods inherited from ErrorBase
Constructor Details
#initialize(message = nil, backtrace = nil, title: nil, code: nil, detail: nil, meta: {}) ⇒ Unauthorized
Returns a new instance of Unauthorized.
4 5 6 7 8 9 10 11 12 |
# File 'lib/commons/errors/unauthorized.rb', line 4 def initialize( = nil, backtrace = nil, title: nil, code: nil, detail: nil, meta: {}) super , backtrace, status: :unauthorized, code: code || I18n.t('status_code.IER4002_unauthorized.code'), title: title || I18n.t('status_code.IER4002_unauthorized.title'), detail: detail || I18n.t('status_code.IER4002_unauthorized.detail'), meta: end |