Exception: Integrative::Errors::MethodAlreadyExistsError

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, name) ⇒ MethodAlreadyExistsError

Returns a new instance of MethodAlreadyExistsError.



59
60
61
62
63
# File 'lib/integrative/errors.rb', line 59

def initialize(integrator, name)
  message = "Method '#{name}' is already defined on #{integrator.name}." +
    " You can not define integration with this name."
  super(message, integrator)
end