Exception: MarkdownRecord::Errors::DuplicateIdError

Inherits:
Base
  • Object
show all
Defined in:
lib/markdown_record/errors/duplicate_id_error.rb

Instance Method Summary collapse

Constructor Details

#initialize(type, id) ⇒ DuplicateIdError

Returns a new instance of DuplicateIdError.



6
7
8
# File 'lib/markdown_record/errors/duplicate_id_error.rb', line 6

def initialize(type, id)
  super("There are multiple models of type #{type} with id: #{id}.")
end