Sha256: b818ba7ba0542579f752a45d139f9ee145d162a1b4829143572b92587ad71089

Contents?: true

Size: 562 Bytes

Versions: 7

Compression:

Stored size: 562 Bytes

Contents

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