Exception: ActiveFacts::API::TypeConflictException

Inherits:
RuntimeException show all
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

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