Module: Inferno::DSL::TCPExceptionHandler
- Defined in:
- lib/inferno/dsl/tcp_exception_handler.rb
Instance Method Summary collapse
Instance Method Details
#tcp_exception_handler(&block) ⇒ Object
5 6 7 8 9 |
# File 'lib/inferno/dsl/tcp_exception_handler.rb', line 5 def tcp_exception_handler(&block) block.call rescue Faraday::ConnectionFailed, SocketError => e e..include?('Failed to open TCP') ? raise(Exceptions::AssertionException, e.) : raise(e) end |