Exception: MultipleConnectionHandler::DoubleInitializationError

Inherits:
Exception
  • Object
show all
Defined in:
lib/multiple_connection_handler.rb

Overview

raised when attempting to re-initialize the handler after it’s already been initialized. prevents competition between two clients of the class who may attempt to change the database config file on top of one another


Instance Method Summary collapse

Constructor Details

#initializeDoubleInitializationError

Returns a new instance of DoubleInitializationError.



20
21
22
# File 'lib/multiple_connection_handler.rb', line 20

def initialize
  super("Re-initializing MultipleConnectionHandler not allowed")
end