lib/amq/client/adapter.rb in amq-client-0.7.0.alpha9 vs lib/amq/client/adapter.rb in amq-client-0.7.0.alpha10
- old
+ new
@@ -144,9 +144,18 @@
# @api plugin
# @see AMQ::Client::Adapter
def async?
!sync?
end
+
+
+ # Can be overriden by higher-level libraries like amqp gem or bunny.
+ # Defaults to AMQ::Client::TCPConnectionFailed.
+ #
+ # @return [Exception]
+ def tcp_connection_failure_exception_class
+ @tcp_connection_failure_exception_class ||= AMQ::Client::TCPConnectionFailed
+ end # tcp_connection_failure_exception_class
end # ClassMethods
#
# Behaviors