lib/toml/errors.rb
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) self.key = key super "Key #{key.inspect} is defined more than once" end end end