Exception: ActiveFacts::API::TypeMigrationException
- Inherits:
-
RuntimeException
- Object
- StandardError
- ActiveFactsException
- RuntimeException
- ActiveFacts::API::TypeMigrationException
- 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
-
#initialize(klass, supertype, key) ⇒ TypeMigrationException
constructor
A new instance of TypeMigrationException.
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 |