Exception: Lims::Core::Persistence::Persistor::DuplicateError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/lims-core/persistence/persistor.rb

Overview

Raised if there is any duplicate in the identity maps

Direct Known Subclasses

DuplicateIdError, DuplicateObjectError

Instance Method Summary collapse

Constructor Details

#initialize(persistor, value) ⇒ DuplicateError

Returns a new instance of DuplicateError.



53
54
55
# File 'lib/lims-core/persistence/persistor.rb', line 53

def initialize(persistor, value)
  super("#{value.inspect} already exists for persistor #{persistor.model}")
end