Sha256: 7c5e600efde33665cc293339b5819a58d04a6df9589beffbd8eedeca8e7eb76e

Contents?: true

Size: 520 Bytes

Versions: 7

Compression:

Stored size: 520 Bytes

Contents

module Commons
  module Errors
    class ResourceNotFound < ErrorBase
      def initialize(message = nil, title: nil, code: nil, detail: nil, meta: {})
        super message,
              status: :not_found,
              title: title || I18n.t('status_code.IER4011_resource_not_found.title'),
              code: code || I18n.t('status_code.IER4011_resource_not_found.code'),
              detail: detail || I18n.t('status_code.IER4011_resource_not_found.detail'),
              meta: meta
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
commons_yellowme-0.16.0 lib/commons/errors/route_not_found.rb
commons_yellowme-0.15.0 lib/commons/errors/route_not_found.rb
commons_yellowme-0.12.0 lib/commons/errors/route_not_found.rb
commons_yellowme-0.11.3 lib/commons/errors/route_not_found.rb
commons_yellowme-0.11.2 lib/commons/errors/route_not_found.rb
commons_yellowme-0.11.1 lib/commons/errors/route_not_found.rb
commons_yellowme-0.11.0 lib/commons/errors/route_not_found.rb