Exception: Excon::Errors::SocketError
- Defined in:
- lib/excon/errors.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#socket_error ⇒ Object
readonly
Returns the value of attribute socket_error.
Instance Method Summary collapse
-
#initialize(socket_error = Excon::Errors::Error.new) ⇒ SocketError
constructor
A new instance of SocketError.
Constructor Details
#initialize(socket_error = Excon::Errors::Error.new) ⇒ SocketError
Returns a new instance of SocketError.
11 12 13 14 15 16 17 18 19 |
# File 'lib/excon/errors.rb', line 11 def initialize(socket_error = Excon::Errors::Error.new) if is_a?(CertificateError) super else super("#{socket_error.} (#{socket_error.class})") set_backtrace(socket_error.backtrace) @socket_error = socket_error end end |
Instance Attribute Details
#socket_error ⇒ Object (readonly)
Returns the value of attribute socket_error.
9 10 11 |
# File 'lib/excon/errors.rb', line 9 def socket_error @socket_error end |