Exception: Lims::Core::Persistence::Persistor::DuplicateError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Lims::Core::Persistence::Persistor::DuplicateError
- Defined in:
- lib/lims-core/persistence/persistor.rb
Overview
Raised if there is any duplicate in the identity maps
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(persistor, value) ⇒ DuplicateError
constructor
A new instance of DuplicateError.
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 |