Exception: ActiveFacts::API::TypeConflictException
- Inherits:
-
RuntimeException
- Object
- StandardError
- ActiveFactsException
- RuntimeException
- ActiveFacts::API::TypeConflictException
- Defined in:
- lib/activefacts/api/exceptions.rb
Overview
When an existing object having multiple identification patterns is re-asserted, all the keys must match the existing object
Instance Method Summary collapse
-
#initialize(klass, supertype, key, existing) ⇒ TypeConflictException
constructor
A new instance of TypeConflictException.
Constructor Details
#initialize(klass, supertype, key, existing) ⇒ TypeConflictException
Returns a new instance of TypeConflictException.
94 95 96 |
# File 'lib/activefacts/api/exceptions.rb', line 94 def initialize(klass, supertype, key, existing) super "#{klass} cannot be asserted to have #{supertype} identifier #{key.inspect} because the existing object has #{existing.inspect}" end |