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