Sha256: f611b449055a034d2cba3918899d9153d290e5ce60c9dc4c698edc556049ce87

Contents?: true

Size: 582 Bytes

Versions: 7

Compression:

Stored size: 582 Bytes

Contents

module Commons
  module Errors
    class UnprocessableEntity < ErrorBase
      def initialize(message = nil, backtrace = nil, title: nil, code: nil, detail: nil, meta: {})
        super message,
              backtrace,
              status: :unprocessable_entity,
              title: title || I18n.t('status_code.IER4222_unprocessable_entity.title'),
              code: code || I18n.t('status_code.IER4222_unprocessable_entity.code'),
              detail: detail || I18n.t('status_code.IER4222_unprocessable_entity.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/unprocessable_entity.rb
commons_yellowme-0.15.0 lib/commons/errors/unprocessable_entity.rb
commons_yellowme-0.12.0 lib/commons/errors/unprocessable_entity.rb
commons_yellowme-0.11.3 lib/commons/errors/unprocessable_entity.rb
commons_yellowme-0.11.2 lib/commons/errors/unprocessable_entity.rb
commons_yellowme-0.11.1 lib/commons/errors/unprocessable_entity.rb
commons_yellowme-0.11.0 lib/commons/errors/unprocessable_entity.rb