We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b3e67d3 commit 4f0f4b2Copy full SHA for 4f0f4b2
lib/net/ldap/error.rb
@@ -9,7 +9,21 @@ class Error < StandardError; end
9
10
class AlreadyOpenedError < Error; end
11
class SocketError < Error; end
12
- class ConnectionRefusedError < Error; end
+ class ConnectionRefusedError < Error;
13
+ def initialize(*args)
14
+ warn warning_message
15
+ super
16
+ end
17
+
18
+ def message
19
+ warning_message + super
20
21
22
+ private
23
+ def warning_message
24
+ "Deprecation warning: Net::LDAP::ConnectionRefused will be deprecated. Use Errno::ECONNREFUSED instead. \n"
25
26
27
class NoOpenSSLError < Error; end
28
class NoStartTLSResultError < Error; end
29
class NoSearchBaseError < Error; end
0 commit comments