Exception: ActiveFacts::API::InvalidIdentificationException
- Inherits:
-
SchemaException
- Object
- StandardError
- ActiveFactsException
- SchemaException
- ActiveFacts::API::InvalidIdentificationException
- Defined in:
- lib/activefacts/api/exceptions.rb
Instance Method Summary collapse
-
#initialize(object_type, role, is_single) ⇒ InvalidIdentificationException
constructor
A new instance of InvalidIdentificationException.
Constructor Details
#initialize(object_type, role, is_single) ⇒ InvalidIdentificationException
Returns a new instance of InvalidIdentificationException.
31 32 33 34 35 36 37 38 39 |
# File 'lib/activefacts/api/exceptions.rb', line 31 def initialize object_type, role, is_single msg = if is_single "#{object_type} has a single identifying role '#{role}' which is has_one, but must be one_to_one" else "#{object_type} has an identifying role '#{role}' which is one_to_one, but must be has_one" end super msg end |