class Net::LDAP::ConnectionError
Public Class Methods
new(errors)
click to toggle source
Calls superclass method
# File lib/net/ldap/error.rb, line 30 def self.new(errors) error = errors.first.first if errors.size == 1 if error.kind_of? Errno::ECONNREFUSED return Net::LDAP::ConnectionRefusedError.new(error.message) end return Net::LDAP::Error.new(error.message) end super end
new(errors)
click to toggle source
Calls superclass method
# File lib/net/ldap/error.rb, line 43 def initialize(errors) message = "Unable to connect to any given server: \n #{errors.map { |e, h, p| "#{e.class}: #{e.message} (#{h}:#{p})" }.join("\n ")}" super(message) end