Sha256: b33aae100e17ea5830ba87f95ea74d58dc9ded32bd897617e2d6b1d28549d539
Contents?: true
Size: 758 Bytes
Versions: 7
Compression:
Stored size: 758 Bytes
Contents
module Commons module Errors class InvalidResource < UnprocessableEntity def initialize(message = nil, backtrace = nil, title: nil, code: nil, detail: nil, validation_errors: nil) meta = {} meta.merge!(validation_errors: validation_errors) unless validation_errors.blank? super message, backtrace, title: title || I18n.t('status_code.IER4006_invalid_resource.title'), code: code || I18n.t('status_code.IER4006_invalid_resource.code'), detail: detail || I18n.t('status_code.IER4006_invalid_resource.detail'), meta: meta end end end end
Version data entries
7 entries across 7 versions & 1 rubygems