Exception: ActiveFacts::API::TypeConflictException
- Inherits:
-
ActiveFactsRuntimeException
- Object
- StandardError
- ActiveFactsException
- ActiveFactsRuntimeException
- 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.
46 47 48 |
# File 'lib/activefacts/api/exceptions.rb', line 46 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 |