Sha256: 9388a70d153a783ba7f6dad24e1e19c1b9b20d27e8efe3fb587faa929f09f429

Contents?: true

Size: 392 Bytes

Versions: 24

Compression:

Stored size: 392 Bytes

Contents

# frozen_string_literal: true

module Avromatic
  module Model
    class UnknownAttributeError < StandardError
      attr_reader :unknown_attributes, :allowed_attributes

      def initialize(message, unknown_attributes:, allowed_attributes:)
        super(message)
        @unknown_attributes = unknown_attributes
        @allowed_attributes = allowed_attributes
      end
    end
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
avromatic-2.2.0 lib/avromatic/model/unknown_attribute_error.rb
avromatic-2.1.0 lib/avromatic/model/unknown_attribute_error.rb
avromatic-2.0.1 lib/avromatic/model/unknown_attribute_error.rb
avromatic-2.0.0 lib/avromatic/model/unknown_attribute_error.rb