Module: Switchman::ConnectionError

Defined in:
lib/switchman/connection_pool_proxy.rb

Class Method Summary collapse

Class Method Details

.===(other) ⇒ Object



5
6
7
8
9
# File 'lib/switchman/connection_pool_proxy.rb', line 5

def self.===(other)
  return true if defined?(PG::Error) && PG::Error === other
  return true if defined?(Mysql2::Error) && Mysql2::Error === other
  false
end