class ResilientSocket::ConnectionFailure
Raised by ResilientSocket
whenever a Socket connection failure has occurred
Attributes
cause[R]
Returns the original exception that caused the connection failure For example instances of Errno::ECONNRESET
server[R]
Returns the hostname and port against which the connection failure occurred
Public Class Methods
new(message, server, cause=nil)
click to toggle source
Parameters
message [String] Text message of the reason for the failure and/or where it occurred server [String] Hostname and port For example: "localhost:2000" cause [Exception] Original Exception if any, otherwise nil
Calls superclass method
# File lib/resilient_socket/exceptions.rb, line 26 def initialize(message, server, cause=nil) @server = server @cause = cause super(message) end