Exception: ActiveFacts::API::TypeMigrationException

Inherits:
RuntimeException show all
Defined in:
lib/activefacts/api/exceptions.rb

Overview

When a new entity is asserted, but a supertype identifier matches an existing object of a different type, type migration is implied but unfortunately is impossible in Ruby

Instance Method Summary collapse

Constructor Details

#initialize(klass, supertype, key) ⇒ TypeMigrationException

Returns a new instance of TypeMigrationException.



101
102
103
# File 'lib/activefacts/api/exceptions.rb', line 101

def initialize(klass, supertype, key)
  super "#{klass} cannot be asserted due to the prior existence of a conflicting #{supertype} identified by #{key.inspect}"
end