Methods

Class/Module Index [+]

Quicksearch

Excon::Errors::SocketError

Attributes

socket_error[R]

Public Class Methods

new(socket_error=nil) click to toggle source
# File lib/excon/errors.rb, line 9
def initialize(socket_error=nil)
  if socket_error.message =~ /certificate verify failed/
    super('Unable to verify certificate, please set `Excon.ssl_ca_path = path_to_certs` or `Excon.ssl_verify_peer = false` (less secure).')
  else
    super(socket_error.message)
  end
  set_backtrace(socket_error.backtrace)
  @socket_error = socket_error
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.