Sha256: 5ed8bfbc85b9f8341140cefa8385a8cf344141ccb77cdb88441e2cb9897cdaf6

Contents?: true

Size: 577 Bytes

Versions: 7

Compression:

Stored size: 577 Bytes

Contents

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