Sha256: 6279427dad7002f4676b77bd4ef0526e51e5e9a555aa8bcd8f00e012d7c4082a

Contents?: true

Size: 346 Bytes

Versions: 6

Compression:

Stored size: 346 Bytes

Contents

module TOML
  # Parent class for all TOML 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

6 entries across 6 versions & 1 rubygems

Version Path
toml-rb-0.3.15 lib/toml/errors.rb
toml-rb-0.3.14 lib/toml/errors.rb
toml-rb-0.3.13 lib/toml/errors.rb
toml-rb-0.3.12 lib/toml/errors.rb
toml-rb-0.3.11 lib/toml/errors.rb
toml-rb-0.3.10 lib/toml/errors.rb