Exception: ActiveFacts::API::DuplicateIdentifyingValueException
- Inherits:
-
ActiveFactsRuntimeException
- Object
- StandardError
- ActiveFactsException
- ActiveFactsRuntimeException
- ActiveFacts::API::DuplicateIdentifyingValueException
- Defined in:
- lib/activefacts/api/exceptions.rb
Instance Method Summary collapse
-
#initialize(klass, role_name, value) ⇒ DuplicateIdentifyingValueException
constructor
A new instance of DuplicateIdentifyingValueException.
Constructor Details
#initialize(klass, role_name, value) ⇒ DuplicateIdentifyingValueException
Returns a new instance of DuplicateIdentifyingValueException.
37 38 39 40 41 |
# File 'lib/activefacts/api/exceptions.rb', line 37 def initialize(klass, role_name, value) super("Illegal attempt to assert #{klass.basename} having identifying value" + " (#{role_name} is #{value.verbalise})," + " when #{value.(false).map(&:verbalise).join(", ")} already exists") end |