Exception: Module::Cluster::Exception::ModuleNotInStack

Inherits:
ArgumentError
  • Object
show all
Defined in:
lib/module/cluster/exception/module_not_in_stack.rb

Overview

Exception raised when a module is provided for a before/after insert but module is not present in stack

as specified.

Instance Method Summary collapse

Constructor Details

#initialize(hook_controller, module_instance) ⇒ ModuleNotInStack

Returns a new instance of ModuleNotInStack.

Parameters:

  • hook_controller

    Hook Controller where module was not found.

  • module_instance

    Module not found.



18
19
20
21
22
23
24
# File 'lib/module/cluster/exception/module_not_in_stack.rb', line 18

def initialize( hook_controller, module_instance )
  
  message_string = 'Module ' + module_instance.to_s + ' not found in stack ' + hook_controller.name.to_s + '.'
  
  super( message_string )
  
end