Exception: Integrative::Errors::IntegrationDefinitionMissingError

Inherits:
IntegratorError
  • Object
show all
Defined in:
lib/integrative/errors.rb

Instance Attribute Summary

Attributes inherited from IntegratorError

#integration

Instance Method Summary collapse

Constructor Details

#initialize(integrator, names) ⇒ IntegrationDefinitionMissingError

Returns a new instance of IntegrationDefinitionMissingError.



67
68
69
70
71
72
73
# File 'lib/integrative/errors.rb', line 67

def initialize(integrator, names)
  message = "You tried to call `integrate` on a class #{integrator.name}" +
    " but this class doesn't have this integration." +
    " add the following line to the class #{integrator.name}:" +
    " 'integrates :#{names.join(', :')}'"
  super(message, integrator)
end