Sha256: 20662a6091850adc9bce91223af4b4f950d5154952a64ef3c56a3c7b51edf9c9
Contents?: true
Size: 644 Bytes
Versions: 3
Compression:
Stored size: 644 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
gm-notepad-0.0.10 | lib/gm/notepad/exceptions.rb |
gm-notepad-0.0.9 | lib/gm/notepad/exceptions.rb |
gm-notepad-0.0.8 | lib/gm/notepad/exceptions.rb |