Sha256: 72ba23a1fd462346e579decd0181d37792800b86016fe3ee583886d6d4001a28
Contents?: true
Size: 646 Bytes
Versions: 1
Compression:
Stored size: 646 Bytes
Contents
module Gm module Notepad class RuntimeError < ::RuntimeError end class DuplicateKeyError < RuntimeError def initialize(key:, object:) super("Duplicate key for #{key.inspect} in #{object}") end end class MissingTableError < RuntimeError def initialize(name:) @name = name super(%((Missing table "#{name}"))) end alias to_buffer_message to_s end class MissingTableEntryError < RuntimeError def initialize(table_name:, index:) super(%(Missing index "#{index}" for table "#{table_name}")) end alias to_buffer_message to_s end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gm-notepad-0.0.11 | lib/gm/notepad/exceptions.rb |