Exception: MultipleConnectionHandler::DoubleInitializationError
- Inherits:
-
Exception
- Object
- Exception
- MultipleConnectionHandler::DoubleInitializationError
- 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
-
#initialize ⇒ DoubleInitializationError
constructor
A new instance of DoubleInitializationError.
Constructor Details
#initialize ⇒ DoubleInitializationError
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 |