Sha256: d04deb7d79fd0d3ba2422683a621419d9165e0eca1e015eddfa088aa6576fb51

Contents?: true

Size: 295 Bytes

Versions: 4

Compression:

Stored size: 295 Bytes

Contents

# frozen_string_literal: true

module Ruby
  module Enum
    module Errors
      # Error raised when a duplicate enum key is found
      class DuplicateKeyError < Base
        def initialize(attrs)
          super(compose_message('duplicate_key', attrs))
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
ruby-enum-1.0.0 lib/ruby-enum/errors/duplicate_key_error.rb
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/ruby-enum-0.9.0/lib/ruby-enum/errors/duplicate_key_error.rb
ruby-enum-0.9.0 lib/ruby-enum/errors/duplicate_key_error.rb
ruby-enum-0.8.0 lib/ruby-enum/errors/duplicate_key_error.rb