Exception: Gm::Notepad::DuplicateKeyError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- RuntimeError
- Gm::Notepad::DuplicateKeyError
- Defined in:
- lib/gm/notepad/exceptions.rb
Instance Method Summary collapse
-
#initialize(key:, object:) ⇒ DuplicateKeyError
constructor
A new instance of DuplicateKeyError.
Constructor Details
#initialize(key:, object:) ⇒ DuplicateKeyError
Returns a new instance of DuplicateKeyError.
6 7 8 |
# File 'lib/gm/notepad/exceptions.rb', line 6 def initialize(key:, object:) super("Duplicate key for #{key.inspect} in #{object}") end |