Sha256: 5ce38c9a837b6e81046ed71b987b0dd191eb12648ee82044c9be2e8c466b50b2

Contents?: true

Size: 350 Bytes

Versions: 86

Compression:

Stored size: 350 Bytes

Contents

module TomlRB
  # Parent class for all TomlRB errors
  Error = Class.new(StandardError)

  # Error related to parsing.
  ParseError = Class.new(Error)

  # Overwrite error
  class ValueOverwriteError < Error
    attr_accessor :key

    def initialize(key)
      @key = key
      super "Key #{key.inspect} is defined more than once"
    end
  end
end

Version data entries

86 entries across 86 versions & 3 rubygems

Version Path
harbr-0.1.72 vendor/bundle/ruby/3.2.0/gems/toml-rb-2.2.0/lib/toml-rb/errors.rb
harbr-0.1.71 vendor/bundle/ruby/3.2.0/gems/toml-rb-2.2.0/lib/toml-rb/errors.rb
harbr-0.1.70 vendor/bundle/ruby/3.2.0/gems/toml-rb-2.2.0/lib/toml-rb/errors.rb
harbr-0.1.69 vendor/bundle/ruby/3.2.0/gems/toml-rb-2.2.0/lib/toml-rb/errors.rb
harbr-0.1.68 vendor/bundle/ruby/3.2.0/gems/toml-rb-2.2.0/lib/toml-rb/errors.rb
harbr-0.1.67 vendor/bundle/ruby/3.2.0/gems/toml-rb-2.2.0/lib/toml-rb/errors.rb
harbr-0.1.66 vendor/bundle/ruby/3.2.0/gems/toml-rb-2.2.0/lib/toml-rb/errors.rb
harbr-0.1.65 vendor/bundle/ruby/3.2.0/gems/toml-rb-2.2.0/lib/toml-rb/errors.rb
harbr-0.1.64 vendor/bundle/ruby/3.2.0/gems/toml-rb-2.2.0/lib/toml-rb/errors.rb
harbr-0.1.63 vendor/bundle/ruby/3.2.0/gems/toml-rb-2.2.0/lib/toml-rb/errors.rb
harbr-0.1.62 vendor/bundle/ruby/3.2.0/gems/toml-rb-2.2.0/lib/toml-rb/errors.rb
harbr-0.1.61 vendor/bundle/ruby/3.2.0/gems/toml-rb-2.2.0/lib/toml-rb/errors.rb
harbr-0.1.60 vendor/bundle/ruby/3.2.0/gems/toml-rb-2.2.0/lib/toml-rb/errors.rb
harbr-0.1.59 vendor/bundle/ruby/3.2.0/gems/toml-rb-2.2.0/lib/toml-rb/errors.rb
harbr-0.1.58 vendor/bundle/ruby/3.2.0/gems/toml-rb-2.2.0/lib/toml-rb/errors.rb
harbr-0.1.57 vendor/bundle/ruby/3.2.0/gems/toml-rb-2.2.0/lib/toml-rb/errors.rb
harbr-0.1.56 vendor/bundle/ruby/3.2.0/gems/toml-rb-2.2.0/lib/toml-rb/errors.rb
harbr-0.1.55 vendor/bundle/ruby/3.2.0/gems/toml-rb-2.2.0/lib/toml-rb/errors.rb
harbr-0.1.54 vendor/bundle/ruby/3.2.0/gems/toml-rb-2.2.0/lib/toml-rb/errors.rb
harbr-0.1.53 vendor/bundle/ruby/3.2.0/gems/toml-rb-2.2.0/lib/toml-rb/errors.rb